Changeset 21423 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Jul 9, 2009 10:15:01 AM (15 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/unpacker
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_arrays.c
r21422 r21423 123 123 void * indexptr; 124 124 #ifdef CR_ARB_vertex_buffer_object 125 GLboolean hasidxdata = READ_DATA(24, GL boolean);126 indexptr = hasidxdata ? DATA_POINTER(2 4+sizeof(GLboolean), void) : (void*)indices;125 GLboolean hasidxdata = READ_DATA(24, GLint); 126 indexptr = hasidxdata ? DATA_POINTER(28, void) : (void*)indices; 127 127 #else 128 128 indexptr = DATA_POINTER(24, void); … … 141 141 void * indexptr; 142 142 #ifdef CR_ARB_vertex_buffer_object 143 GLboolean hasidxdata = READ_DATA(32, GL boolean);144 indexptr = hasidxdata ? DATA_POINTER(3 2+sizeof(GLboolean), void) : (void*)indices;143 GLboolean hasidxdata = READ_DATA(32, GLint); 144 indexptr = hasidxdata ? DATA_POINTER(36, void) : (void*)indices; 145 145 #else 146 146 indexptr = DATA_POINTER(32, void); -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_bufferobject.c
r21422 r21423 28 28 GLsizeiptrARB size = READ_DATA(sizeof(int) + 8, GLuint); 29 29 GLenum usage = READ_DATA(sizeof(int) + 12, GLenum); 30 GLboolean hasdata = READ_DATA(sizeof(int) + 16, GL boolean);31 GLvoid *data = DATA_POINTER(sizeof(int) + 16 + sizeof(GLboolean), GLvoid);30 GLboolean hasdata = READ_DATA(sizeof(int) + 16, GLint); 31 GLvoid *data = DATA_POINTER(sizeof(int) + 20, GLvoid); 32 32 33 33 cr_unpackDispatch.BufferDataARB(target, size, hasdata ? data:NULL, usage);
Note:
See TracChangeset
for help on using the changeset viewer.