Changeset 78263 in vbox for trunk/src/VBox/GuestHost/OpenGL
- Timestamp:
- Apr 23, 2019 6:41:06 PM (6 years ago)
- Location:
- trunk/src/VBox/GuestHost/OpenGL
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/include/cr_spu.h
r78190 r78263 114 114 typedef int (WGL_APIENTRY *wglDescribePixelFormatFunc_t)(HDC, int, UINT, CONST PIXELFORMATDESCRIPTOR *); 115 115 typedef int (WGL_APIENTRY *wglSetPixelFormatFunc_t)(HDC, int, CONST PIXELFORMATDESCRIPTOR *); 116 typedef HGLRC (WGL_APIENTRY *wglGetCurrentContextFunc_t)( );117 typedef PROC (WGL_APIENTRY *wglGetProcAddressFunc_t)( );116 typedef HGLRC (WGL_APIENTRY *wglGetCurrentContextFunc_t)(void); 117 typedef PROC (WGL_APIENTRY *wglGetProcAddressFunc_t)(LPCSTR Arg1); 118 118 typedef BOOL (WGL_APIENTRY *wglChoosePixelFormatEXTFunc_t)(HDC, const int *, const FLOAT *, UINT, int *, UINT *); 119 119 typedef BOOL (WGL_APIENTRY *wglGetPixelFormatAttribivEXTFunc_t)(HDC, int, int, UINT, int *, int *); 120 120 typedef BOOL (WGL_APIENTRY *wglGetPixelFormatAttribfvEXTFunc_t)(HDC, int, int, UINT, int *, float *); 121 121 typedef const GLubyte *(WGL_APIENTRY *glGetStringFunc_t)( GLenum ); 122 typedef const GLubyte *(WGL_APIENTRY *wglGetExtensionsStringEXTFunc_t)( );122 typedef const GLubyte *(WGL_APIENTRY *wglGetExtensionsStringEXTFunc_t)(void); 123 123 typedef const GLubyte *(WGL_APIENTRY *wglGetExtensionsStringARBFunc_t)(HDC); 124 124 /*@}*/ -
trunk/src/VBox/GuestHost/OpenGL/include/cr_unpack.h
r78198 r78263 94 94 return; \ 95 95 } \ 96 size_t int_cbAccessVerified = (a_cbAccess) 96 size_t int_cbAccessVerified = (a_cbAccess); RT_NOREF(int_cbAccessVerified) 97 97 98 98 #define CHECK_BUFFER_SIZE_STATIC_LAST(a_pState, a_offAccessLast, a_Type) CHECK_BUFFER_SIZE_STATIC(a_pState, (a_offAccessLast) + sizeof( a_Type )) -
trunk/src/VBox/GuestHost/OpenGL/spu_loader/choosevisual.c
r69392 r78263 21 21 { 22 22 /* placeholder */ 23 RT_NOREF(ws, visBits); 23 24 return 0; 24 25 } -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_client.c
r78116 r78263 1085 1085 unsigned char *base = (unsigned char *) p; 1086 1086 1087 #ifndef IN_GUEST 1088 RT_NOREF(fRealPtr); 1089 #endif 1090 1087 1091 if (g->current.inBeginEnd) 1088 1092 { … … 1579 1583 } 1580 1584 1581 void STATE_APIENTRY crStateUnlockArraysEXT( )1585 void STATE_APIENTRY crStateUnlockArraysEXT(void) 1582 1586 { 1583 1587 CRContext *g = GetCurrentContext(); … … 1728 1732 else 1729 1733 { 1730 zvMax = ~ 0;1734 zvMax = ~UINT32_C(0); 1731 1735 break; 1732 1736 } -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_glsl.c
r78190 r78263 1281 1281 return result; 1282 1282 #else 1283 RT_NOREF(program, name); 1283 1284 crWarning("crStateGetUniformLocation called on host side!!"); 1284 1285 return -1; … … 1316 1317 return result; 1317 1318 #else 1319 RT_NOREF(program, name); 1318 1320 crWarning("crStateGetAttribLocation called on host side!!"); 1319 1321 return -1; -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_init.c
r69392 r78263 787 787 } 788 788 789 void crStateCleanupCurrent( )789 void crStateCleanupCurrent(void) 790 790 { 791 791 crStateSetCurrentEx( NULL, GL_TRUE ); -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_lists.c
r69392 r78263 59 59 #define CRSTATE_SET_ENABLED(state, cap) CRSTATE_SET_CAP(state, diff_api.IsEnabled(cap), "%u") 60 60 61 #define CRSTATE_SET_ENUM(state, cap) {GLenum _e=g->state; diff_api.GetIntegerv(cap, &_e); CRSTATE_SET_CAP(state, _e, "%#x");}61 #define CRSTATE_SET_ENUM(state, cap) {GLenum _e=g->state; diff_api.GetIntegerv(cap, (GLint *)&_e); CRSTATE_SET_CAP(state, _e, "%#x");} 62 62 #define CRSTATE_SET_FLOAT(state, cap) {GLfloat _f=g->state; diff_api.GetFloatv(cap, &_f); CRSTATE_SET_CAP(state, _f, "%f");} 63 63 #define CRSTATE_SET_INT(state, cap) {GLint _i=g->state; diff_api.GetIntegerv(cap, &_i); CRSTATE_SET_CAP(state, _i, "%i");} … … 224 224 { 225 225 GLuint buf = 0; 226 diff_api.GetIntegerv(GL_DRAW_BUFFER, &buf);226 diff_api.GetIntegerv(GL_DRAW_BUFFER, (GLint *)&buf); 227 227 228 228 if (buf == GL_COLOR_ATTACHMENT0_EXT && (bbFbo || fbFbo)) 229 229 { 230 230 GLuint binding = 0; 231 diff_api.GetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &binding);231 diff_api.GetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, (GLint *)&binding); 232 232 if (!binding) 233 233 { … … 257 257 { 258 258 GLuint buf = 0; 259 diff_api.GetIntegerv(GL_READ_BUFFER, &buf);259 diff_api.GetIntegerv(GL_READ_BUFFER, (GLint *)&buf); 260 260 261 261 if (buf == GL_COLOR_ATTACHMENT0_EXT && (bbFbo || fbFbo)) 262 262 { 263 263 GLuint binding = 0; 264 diff_api.GetIntegerv(GL_READ_FRAMEBUFFER_BINDING, &binding);264 diff_api.GetIntegerv(GL_READ_FRAMEBUFFER_BINDING, (GLint *)&binding); 265 265 if (!binding) 266 266 { -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_snapshot.c
r78117 r78263 1106 1106 int32_t rc; 1107 1107 1108 RT_NOREF(data1); 1109 1108 1110 rc = SSMR3PutMem(pSSM, &key, sizeof(key)); 1109 1111 CRASSERT(rc == VINF_SUCCESS); … … 1809 1811 #include "state_bits_globalop.h" 1810 1812 #undef CRSTATE_BITS_OP 1813 #else 1814 RT_NOREF(pSSM); 1811 1815 #endif 1812 1816 return VINF_SUCCESS; -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_transform.c
r69392 r78263 343 343 } 344 344 345 void STATE_APIENTRY crStateLoadIdentity( )345 void STATE_APIENTRY crStateLoadIdentity(void) 346 346 { 347 347 CRContext *g = GetCurrentContext(); … … 366 366 } 367 367 368 void STATE_APIENTRY crStatePopMatrix( )368 void STATE_APIENTRY crStatePopMatrix(void) 369 369 { 370 370 CRContext *g = GetCurrentContext(); … … 398 398 } 399 399 400 void STATE_APIENTRY crStatePushMatrix( )400 void STATE_APIENTRY crStatePushMatrix(void) 401 401 { 402 402 CRContext *g = GetCurrentContext(); -
trunk/src/VBox/GuestHost/OpenGL/util/vboxhgcm.c
r78190 r78263 1354 1354 1355 1355 #else /* !IN_GUEST */ 1356 RT_NOREF(conn); 1356 1357 crError("crVBoxHGCMDoConnect called on host side!"); 1357 1358 CRASSERT(FALSE);
Note:
See TracChangeset
for help on using the changeset viewer.