Changeset 21423 in vbox for trunk/src/VBox/GuestHost
- Timestamp:
- Jul 9, 2009 10:15:01 AM (16 years ago)
- Location:
- trunk/src/VBox/GuestHost/OpenGL/packer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/packer/pack_bufferobject.c
r21422 r21423 41 41 42 42 packet_length = sizeof(GLenum) 43 + sizeof(target) + sizeof(GLuint) + sizeof(usage) + sizeof(GL boolean);43 + sizeof(target) + sizeof(GLuint) + sizeof(usage) + sizeof(GLint); 44 44 45 45 /*Note: it's valid to pass a NULL pointer here, which tells GPU drivers to allocate memory for the VBO*/ … … 52 52 WRITE_DATA_AI(GLuint, (GLuint) size); 53 53 WRITE_DATA_AI(GLenum, usage); 54 WRITE_DATA_AI(GL boolean, (GLboolean) (data!=NULL));54 WRITE_DATA_AI(GLint, (GLint) (data!=NULL)); 55 55 if (data) 56 56 crMemcpy(data_ptr, data, size); -
trunk/src/VBox/GuestHost/OpenGL/packer/pack_client.c
r21422 r21423 468 468 #ifdef CR_ARB_vertex_buffer_object 469 469 CRBufferObject *elementsBuffer = crStateGetCurrent()->bufferobject.elementsBuffer; 470 packet_length += sizeof(GL boolean);470 packet_length += sizeof(GLint); 471 471 if (elementsBuffer && elementsBuffer->name) 472 472 { … … 494 494 WRITE_DATA_AI(GLuint, (GLuint) indices ); 495 495 #ifdef CR_ARB_vertex_buffer_object 496 WRITE_DATA_AI(GL boolean, (GLboolean)(indexsize>0));496 WRITE_DATA_AI(GLint, (GLint)(indexsize>0)); 497 497 #endif 498 498 if (indexsize>0) … … 515 515 #ifdef CR_ARB_vertex_buffer_object 516 516 CRBufferObject *elementsBuffer = crStateGetCurrent()->bufferobject.elementsBuffer; 517 packet_length += sizeof(GL boolean);517 packet_length += sizeof(GLint); 518 518 if (elementsBuffer && elementsBuffer->name) 519 519 { … … 543 543 WRITE_DATA_AI(GLuint, (GLuint) indices); 544 544 #ifdef CR_ARB_vertex_buffer_object 545 WRITE_DATA_AI(GL boolean, (GLboolean) (indexsize>0));545 WRITE_DATA_AI(GLint, (GLint) (indexsize>0)); 546 546 #endif 547 547 if (indexsize>0)
Note:
See TracChangeset
for help on using the changeset viewer.