VirtualBox

Changeset 20970 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Jun 26, 2009 12:26:49 PM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: fix incorrect rendering of glDrawRangeElements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/array/arrayspu.c

    r20476 r20970  
    509509}
    510510
     511static 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
    511521static void ARRAYSPU_APIENTRY arrayspu_ColorPointer( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer )
    512522{
     
    677687arrayspu_PushClientAttrib( GLbitfield mask )
    678688{
    679      crStatePushClientAttrib(mask);
    680      array_spu.child.PushClientAttrib(mask);
     689    crStatePushClientAttrib(mask);
     690    array_spu.child.PushClientAttrib(mask);
    681691}
    682692
     
    685695arrayspu_PopClientAttrib( void )
    686696{
    687      crStatePopClientAttrib();
    688      array_spu.child.PopClientAttrib();
     697    crStatePopClientAttrib();
     698    array_spu.child.PopClientAttrib();
    689699}
    690700
     
    855865    { "DrawArrays", (SPUGenericFunction) arrayspu_DrawArrays},
    856866    { "DrawElements", (SPUGenericFunction)  arrayspu_DrawElements},
     867    { "DrawRangeElements", (SPUGenericFunction) arrayspu_DrawRangeElements},
    857868    { "ColorPointer", (SPUGenericFunction) arrayspu_ColorPointer},
    858869    { "SecondaryColorPointerEXT", (SPUGenericFunction) arrayspu_SecondaryColorPointerEXT},
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette