儲存庫 vbox 的更動 63206
- 時間撮記:
- 2016-8-9 下午02:13:22 (8 年 以前)
- 位置:
- trunk/src/VBox/Additions/common/crOpenGL
- 檔案:
-
- 修改 6 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/common/crOpenGL/egl.c
r62521 r63206 149 149 { 150 150 Display *pDisplay; 151 int rc,cError, cEvent, cMajor, cMinor;151 int cError, cEvent, cMajor, cMinor; 152 152 153 153 if (!testValidDisplay(hDisplay)) … … 201 201 DECLEXPORT(const char *) eglQueryString(EGLDisplay hDisplay, EGLint name) 202 202 { 203 RT_NOREF(hDisplay); 203 204 switch (name) 204 205 { … … 240 241 } 241 242 242 static int convertEGLAttribToGLX(EGLint EGLAttrib)243 { 244 switch ( EGLAttrib)243 static int convertEGLAttribToGLX(EGLint a_EGLAttrib) 244 { 245 switch (a_EGLAttrib) 245 246 { 246 247 case EGL_BUFFER_SIZE: … … 310 311 const EGLint *pAttrib, *pAttrib2; 311 312 EGLint cRenderableType = EGL_OPENGL_ES_BIT; 312 intcConfigCaveat = GLX_DONT_CARE, cConformant = GLX_DONT_CARE;313 unsigned cConfigCaveat = GLX_DONT_CARE, cConformant = GLX_DONT_CARE; 313 314 GLXFBConfig *paFBConfigs; 314 315 int caFBConfigs; … … 442 443 return setEGLError(EGL_BAD_ACCESS); 443 444 *pcConfigs = caFBConfigs; 444 for (i = 0; i < caConfigs &&i < caFBConfigs; ++i)445 for (i = 0; (GLint)i < caConfigs && (GLint)i < caFBConfigs; ++i) 445 446 paConfigs[i] = (EGLConfig)paFBConfigs[i]; 446 447 XFree(paFBConfigs); … … 635 636 paAttributes += 2; 636 637 } 637 EGL_ASSERT( cIndex < RT_ELEMENTS(aAttributes) - 1);638 EGL_ASSERT((unsigned)cIndex < RT_ELEMENTS(aAttributes) - 1U); 638 639 aAttributes[cIndex + 1] = None; 639 640 hPbuffer = glXCreatePbuffer(pDisplay, (GLXFBConfig)config, aAttributes); … … 923 924 Display *pDisplay = (Display *)hDisplay; 924 925 925 if (!VALID_PTR( hDisplay))926 if (!VALID_PTR(pDisplay)) 926 927 return setEGLError(EGL_NOT_INITIALIZED); 927 928 -
trunk/src/VBox/Additions/common/crOpenGL/feedback/feedback_context.c
r62521 r63206 1 1 /* $Id$ */ 2 3 2 /** @file 4 3 * VBox feedback spu, context tracking. … … 20 19 #include "cr_error.h" 21 20 #include "feedbackspu.h" 21 22 /** @todo r=bird: None of the code here is referenced externally, so I've 23 * just prototyped the function here at the top of the file to make 24 * the compiler happy. */ 25 GLint FEEDBACKSPU_APIENTRY feedbackspu_VBoxCreateContext( GLint con, const char *dpyName, GLint visual, GLint shareCtx ); 26 GLint FEEDBACKSPU_APIENTRY feedbackspu_CreateContext( const char *dpyName, GLint visual, GLint shareCtx ); 27 void FEEDBACKSPU_APIENTRY feedbackspu_MakeCurrent( GLint window, GLint nativeWindow, GLint ctx ); 28 void FEEDBACKSPU_APIENTRY feedbackspu_DestroyContext( GLint ctx ); 29 22 30 23 31 /*@todo Multithreading case. (See feedback_spu.self.RenderMode)*/ … … 121 129 #endif 122 130 } 131 -
trunk/src/VBox/Additions/common/crOpenGL/feedback/feedbackspu_config.c
r17269 r63206 23 23 static void set_default_viewport( void *foo, const char *response ) 24 24 { 25 (void) foo; 25 26 sscanf( response, "%d", &(feedback_spu.default_viewport) ); 26 27 } -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_beginend.py
r57544 r63206 19 19 void PACKSPU_APIENTRY packspu_Begin( GLenum mode ) 20 20 { 21 CRPackBuffer *buf; 22 #if CR_ARB_vertex_buffer_object 23 GET_CONTEXT(ctx); 24 #else 21 25 GET_THREAD(thread); 22 CRPackBuffer *buf = &thread->BeginEndBuffer; 26 #endif 27 28 buf = &thread->BeginEndBuffer; 23 29 24 30 /* XXX comparing mode >= 0 here is not needed since mode is unsigned */ … … 28 34 { 29 35 GLboolean serverArrays = GL_FALSE; 30 GET_CONTEXT(ctx);31 36 if (ctx->clientState->extensions.ARB_vertex_buffer_object) 32 37 serverArrays = crStateUseServerArrays(); -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_get.py
r51313 r63206 21 21 22 22 print """ 23 GLboolean crPackIsPixelStoreParm(GLenum pname)23 static GLboolean crPackIsPixelStoreParm(GLenum pname) 24 24 { 25 25 if (pname == GL_UNPACK_ALIGNMENT -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_glsl.c
r62521 r63206 115 115 } 116 116 117 GLint PACKSPU_APIENTRY packspu_GetAttribLocationUnchached( GLuint program, const char * name )117 static GLint PACKSPU_APIENTRY packspu_GetAttribLocationUnchached( GLuint program, const char * name ) 118 118 { 119 119 GET_THREAD(thread);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器