Changeset 21422 in vbox for trunk/src/VBox/GuestHost/OpenGL/packer/pack_bufferobject.c
- Timestamp:
- Jul 9, 2009 10:03:37 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/packer/pack_bufferobject.c
r21309 r21422 41 41 42 42 packet_length = sizeof(GLenum) 43 + sizeof(target) + sizeof( size) + sizeof(usage) + sizeof(GLboolean);43 + sizeof(target) + sizeof(GLuint) + sizeof(usage) + sizeof(GLboolean); 44 44 45 45 /*Note: it's valid to pass a NULL pointer here, which tells GPU drivers to allocate memory for the VBO*/ … … 50 50 WRITE_DATA_AI(GLenum, CR_BUFFERDATAARB_EXTEND_OPCODE); 51 51 WRITE_DATA_AI(GLenum, target); 52 WRITE_DATA_AI(GL sizeiptrARB,size);52 WRITE_DATA_AI(GLuint, (GLuint) size); 53 53 WRITE_DATA_AI(GLenum, usage); 54 54 WRITE_DATA_AI(GLboolean, (GLboolean) (data!=NULL)); … … 72 72 73 73 packet_length = sizeof(GLenum) 74 + sizeof(target) + sizeof( offset) + sizeof(size) + size;74 + sizeof(target) + sizeof(GLuint) + sizeof(GLuint) + size; 75 75 76 76 start_ptr = data_ptr = (unsigned char *) crPackAlloc(packet_length); 77 77 WRITE_DATA_AI(GLenum, CR_BUFFERSUBDATAARB_EXTEND_OPCODE); 78 78 WRITE_DATA_AI(GLenum, target); 79 WRITE_DATA_AI(GL intptrARB,offset);80 WRITE_DATA_AI(GL sizeiptrARB,size);79 WRITE_DATA_AI(GLuint, (GLuint) offset); 80 WRITE_DATA_AI(GLuint, (GLuint) size); 81 81 crMemcpy(data_ptr, data, size); 82 82 … … 85 85 } 86 86 87 void PACK_APIENTRY 88 crPackGetBufferSubDataARB( GLenum target, GLintptrARB offset, GLsizeiptrARB size, void * data, int * writeback ) 89 { 90 GET_PACKER_CONTEXT(pc); 91 unsigned char *data_ptr; 92 (void) pc; 93 GET_BUFFERED_POINTER( pc, 36 ); 94 WRITE_DATA( 0, GLint, 36 ); 95 WRITE_DATA( 4, GLenum, CR_GETBUFFERSUBDATAARB_EXTEND_OPCODE ); 96 WRITE_DATA( 8, GLenum, target ); 97 WRITE_DATA( 12, GLuint, (GLuint) offset ); 98 WRITE_DATA( 16, GLuint, (GLuint) size ); 99 WRITE_NETWORK_POINTER( 20, (void *) data ); 100 WRITE_NETWORK_POINTER( 28, (void *) writeback ); 101 WRITE_OPCODE( pc, CR_EXTEND_OPCODE ); 102 } 87 103 88 104 void PACK_APIENTRY
Note:
See TracChangeset
for help on using the changeset viewer.