Changeset 78212 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/unpacker
- Timestamp:
- Apr 18, 2019 9:39:13 PM (6 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/unpacker
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_calllists.cpp
r78190 r78212 9 9 void crUnpackCallLists(PCrUnpackerState pState) 10 10 { 11 CHECK_BUFFER_SIZE_STATIC_LAST(pState, 4, GLenum);11 CHECK_BUFFER_SIZE_STATIC_LAST(pState, sizeof( int ) + 4, GLenum); 12 12 13 13 GLint n = READ_DATA(pState, sizeof( int ) + 0, GLint ); -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_pixelmap.cpp
r78190 r78212 23 23 { 24 24 /* This is valid, see glPixelMap description for GL_PIXEL_UNPACK_BUFFER values is treated as a byte offset. */ 25 CHECK_BUFFER_SIZE_STATIC_UPDATE_LAST(pState, sizeof( int ) + 12, GLfloat); 25 26 values = (GLfloat*) (uintptr_t) READ_DATA(pState,sizeof(int) + 12, GLint); 26 27 } 27 28 else 28 29 { 30 CHECK_BUFFER_SIZE_STATIC_UPDATE_LAST(pState, sizeof( int ) + 16, GLfloat); 31 29 32 values = DATA_POINTER(pState, sizeof( int ) + 16, GLfloat ); 30 33 CHECK_ARRAY_SIZE_FROM_PTR_UPDATE_LAST(pState, values, mapsize, GLfloat); … … 50 53 { 51 54 /* This is valid, see glPixelMap description for GL_PIXEL_UNPACK_BUFFER values is treated as a byte offset. */ 55 CHECK_BUFFER_SIZE_STATIC_UPDATE_LAST(pState, sizeof( int ) + 12, GLfloat); 52 56 values = (GLuint*) (uintptr_t) READ_DATA(pState,sizeof(int) + 12, GLint); 53 57 } 54 58 else 55 59 { 60 CHECK_BUFFER_SIZE_STATIC_UPDATE_LAST(pState, sizeof( int ) + 16, GLfloat); 61 56 62 values = DATA_POINTER(pState, sizeof( int ) + 16, GLuint ); 57 63 CHECK_ARRAY_SIZE_FROM_PTR_UPDATE_LAST(pState, values, mapsize, GLuint); … … 77 83 { 78 84 /* This is valid, see glPixelMap description for GL_PIXEL_UNPACK_BUFFER values is treated as a byte offset. */ 85 CHECK_BUFFER_SIZE_STATIC_UPDATE_LAST(pState, sizeof( int ) + 12, GLfloat); 79 86 values = (GLushort*) (uintptr_t) READ_DATA(pState, sizeof(int) + 12, GLint); 80 87 } 81 88 else 82 89 { 90 CHECK_BUFFER_SIZE_STATIC_UPDATE_LAST(pState, sizeof( int ) + 16, GLfloat); 91 83 92 values = DATA_POINTER(pState, sizeof( int ) + 16, GLushort ); 84 93 CHECK_ARRAY_SIZE_FROM_PTR_UPDATE_LAST(pState, values, mapsize, GLushort);
Note:
See TracChangeset
for help on using the changeset viewer.