Changeset 20970 in vbox
- Timestamp:
- Jun 26, 2009 12:26:49 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49168
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/array/arrayspu.c
r20476 r20970 509 509 } 510 510 511 static void ARRAYSPU_APIENTRY arrayspu_DrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices) 512 { 513 if (start>end) 514 { 515 crError("array_spu.self.arrayspu_DrawRangeElements start>end (%d>%d)", start, end); 516 } 517 518 arrayspu_DrawElements(mode, count, type, indices); 519 } 520 511 521 static void ARRAYSPU_APIENTRY arrayspu_ColorPointer( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 512 522 { … … 677 687 arrayspu_PushClientAttrib( GLbitfield mask ) 678 688 { 679 680 689 crStatePushClientAttrib(mask); 690 array_spu.child.PushClientAttrib(mask); 681 691 } 682 692 … … 685 695 arrayspu_PopClientAttrib( void ) 686 696 { 687 688 697 crStatePopClientAttrib(); 698 array_spu.child.PopClientAttrib(); 689 699 } 690 700 … … 855 865 { "DrawArrays", (SPUGenericFunction) arrayspu_DrawArrays}, 856 866 { "DrawElements", (SPUGenericFunction) arrayspu_DrawElements}, 867 { "DrawRangeElements", (SPUGenericFunction) arrayspu_DrawRangeElements}, 857 868 { "ColorPointer", (SPUGenericFunction) arrayspu_ColorPointer}, 858 869 { "SecondaryColorPointerEXT", (SPUGenericFunction) arrayspu_SecondaryColorPointerEXT}, -
trunk/src/VBox/GuestHost/OpenGL/packer/pack_client.c
r15532 r20970 437 437 { 438 438 case GL_UNSIGNED_BYTE: 439 for (i= start; i<count; i++)439 for (i=0; i<count; i++) 440 440 { 441 441 crPackExpandArrayElement((GLint) *p++, c); … … 443 443 break; 444 444 case GL_UNSIGNED_SHORT: 445 for (i= start; i<count; i++)445 for (i=0; i<count; i++) 446 446 { 447 447 crPackExpandArrayElement((GLint) * (GLushort *) p, c); … … 450 450 break; 451 451 case GL_UNSIGNED_INT: 452 for (i= start; i<count; i++)452 for (i=0; i<count; i++) 453 453 { 454 454 crPackExpandArrayElement((GLint) * (GLuint *) p, c);
Note:
See TracChangeset
for help on using the changeset viewer.