- Timestamp:
- Jan 19, 2009 10:13:51 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/crOpenGL/array/arrayspu.c
r16035 r16036 26 26 27 27 #ifdef CR_ARB_vertex_buffer_object 28 if (array->e.buffer ->data)28 if (array->e.buffer && array->e.buffer->data) 29 29 { 30 30 p = (unsigned char *)(array->e.buffer->data) + (unsigned long)p; … … 49 49 50 50 #ifdef CR_ARB_vertex_buffer_object 51 if (array->a[attr].buffer ->data)51 if (array->a[attr].buffer && array->a[attr].buffer->data) 52 52 { 53 53 p = (unsigned char *)(array->a[attr].buffer->data) + (unsigned long)p; … … 110 110 111 111 #ifdef CR_ARB_vertex_buffer_object 112 if (array->t[unit].buffer ->data)112 if (array->t[unit].buffer && array->t[unit].buffer->data) 113 113 { 114 114 p = (unsigned char *)(array->t[unit].buffer->data) + (unsigned long)p; … … 162 162 163 163 #ifdef CR_ARB_vertex_buffer_object 164 if (array->i.buffer ->data)164 if (array->i.buffer && array->i.buffer->data) 165 165 { 166 166 p = (unsigned char *)(array->i.buffer->data) + (unsigned long)p; … … 181 181 182 182 #ifdef CR_ARB_vertex_buffer_object 183 if (array->c.buffer ->data)183 if (array->c.buffer && array->c.buffer->data) 184 184 { 185 185 p = (unsigned char *)(array->c.buffer->data) + (unsigned long)p; … … 252 252 253 253 #ifdef CR_ARB_vertex_buffer_object 254 if (array->n.buffer ->data)254 if (array->n.buffer && array->n.buffer->data) 255 255 { 256 256 p = (unsigned char *)(array->n.buffer->data) + (unsigned long)p; … … 273 273 274 274 #ifdef CR_ARB_vertex_buffer_object 275 if (array->s.buffer ->data)275 if (array->s.buffer && array->s.buffer->data) 276 276 { 277 277 p = (unsigned char *)(array->s.buffer->data) + (unsigned long)p; … … 306 306 307 307 #ifdef CR_ARB_vertex_buffer_object 308 if (array->f.buffer ->data)308 if (array->f.buffer && array->f.buffer->data) 309 309 { 310 310 p = (unsigned char *)(array->f.buffer->data) + (unsigned long)p; … … 322 322 323 323 #ifdef CR_ARB_vertex_buffer_object 324 if (array->a[VERT_ATTRIB_POS].buffer ->data)324 if (array->a[VERT_ATTRIB_POS].buffer && array->a[VERT_ATTRIB_POS].buffer->data) 325 325 { 326 326 p = (unsigned char *)(array->a[VERT_ATTRIB_POS].buffer->data) + (unsigned long)p; … … 376 376 377 377 #ifdef CR_ARB_vertex_buffer_object 378 if (array->v.buffer ->data)378 if (array->v.buffer && array->v.buffer->data) 379 379 { 380 380 p = (unsigned char *)(array->v.buffer->data) + (unsigned long)p; … … 445 445 446 446 static void ARRAYSPU_APIENTRY arrayspu_DrawElements(GLenum mode, GLsizei count, 447 447 GLenum type, const GLvoid *indices) 448 448 { 449 449 int i; … … 469 469 470 470 #ifdef CR_ARB_vertex_buffer_object 471 if (elementsBuffer ->data)471 if (elementsBuffer && elementsBuffer->data) 472 472 { 473 473 p = (unsigned char *)(elementsBuffer->data) + (unsigned long)p; … … 640 640 static void ARRAYSPU_APIENTRY 641 641 arrayspu_VertexAttribPointerARB(GLuint index, GLint size, GLenum type, 642 643 642 GLboolean normalized, GLsizei stride, 643 const GLvoid *pointer) 644 644 { 645 645 crStateVertexAttribPointerARB( index, size, type, normalized, stride, pointer );
Note:
See TracChangeset
for help on using the changeset viewer.