Changeset 78375 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/unpacker
- Timestamp:
- May 3, 2019 9:51:02 PM (6 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/unpacker
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_arrays.cpp
r78191 r78375 8 8 #include "unpack_extend.h" 9 9 #include "unpacker.h" 10 #include "cr_glstate.h"11 10 12 11 … … 292 291 int numenabled = READ_DATA(pState, sizeof(int) + 12, int); 293 292 294 CRContext *g = crStateGetCurrent( );293 CRContext *g = crStateGetCurrent(pState->pStateTracker); 295 294 CRClientState *c = &g->client; 296 295 CRClientPointer *cp; … … 364 363 { 365 364 int i; 366 CRContext *g = crStateGetCurrent( );365 CRContext *g = crStateGetCurrent(pState->pStateTracker); 367 366 CRClientState *c = &g->client; 368 367 CRClientPointer *cp; -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_drawpixels.cpp
r78190 r78375 22 22 GLvoid *pixels; 23 23 24 if (noimagedata && !crStateIsBufferBound( GL_PIXEL_UNPACK_BUFFER_ARB))24 if (noimagedata && !crStateIsBufferBound(pState->pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB)) 25 25 return; 26 26 … … 63 63 GLubyte *bitmap; 64 64 65 if (noimagedata && !crStateIsBufferBound( GL_PIXEL_UNPACK_BUFFER_ARB))65 if (noimagedata && !crStateIsBufferBound(pState->pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB)) 66 66 return; 67 67 -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_misc.cpp
r78190 r78375 54 54 const GLuint *ids = DATA_POINTER(pState, 12, GLuint); 55 55 56 if (n < =0 || n >= INT32_MAX / sizeof(GLint) / 4 || !DATA_POINTER_CHECK(pState, 12 + n * sizeof(GLuint)))56 if (n < 0 || n >= INT32_MAX / sizeof(GLint) / 4 || !DATA_POINTER_CHECK(pState, 12 + n * sizeof(GLuint))) 57 57 { 58 58 crError("crUnpackExtendDeleteQueriesARB: parameter 'n' is out of range"); -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_pixelmap.cpp
r78212 r78375 17 17 GLfloat *values; 18 18 19 if (nodata && !crStateIsBufferBound( GL_PIXEL_UNPACK_BUFFER_ARB))19 if (nodata && !crStateIsBufferBound(pState->pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB)) 20 20 return; 21 21 … … 47 47 GLuint *values; 48 48 49 if (nodata && !crStateIsBufferBound( GL_PIXEL_UNPACK_BUFFER_ARB))49 if (nodata && !crStateIsBufferBound(pState->pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB)) 50 50 return; 51 51 … … 77 77 GLushort *values; 78 78 79 if (nodata && !crStateIsBufferBound( GL_PIXEL_UNPACK_BUFFER_ARB))79 if (nodata && !crStateIsBufferBound(pState->pStateTracker, GL_PIXEL_UNPACK_BUFFER_ARB)) 80 80 return; 81 81
Note:
See TracChangeset
for help on using the changeset viewer.