VirtualBox

Ignore:
Timestamp:
Jul 9, 2009 10:15:01 AM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: fix VBOs on NVidia cards

Location:
trunk/src/VBox/HostServices/SharedOpenGL/unpacker
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_arrays.c

    r21422 r21423  
    123123    void * indexptr;
    124124#ifdef CR_ARB_vertex_buffer_object
    125     GLboolean hasidxdata = READ_DATA(24, GLboolean);
    126     indexptr = hasidxdata ? DATA_POINTER(24+sizeof(GLboolean), void) : (void*)indices;
     125    GLboolean hasidxdata = READ_DATA(24, GLint);
     126    indexptr = hasidxdata ? DATA_POINTER(28, void) : (void*)indices;
    127127#else
    128128    indexptr = DATA_POINTER(24, void);
     
    141141    void * indexptr;
    142142#ifdef CR_ARB_vertex_buffer_object
    143     GLboolean hasidxdata = READ_DATA(32, GLboolean);
    144     indexptr = hasidxdata ? DATA_POINTER(32+sizeof(GLboolean), void) : (void*)indices;
     143    GLboolean hasidxdata = READ_DATA(32, GLint);
     144    indexptr = hasidxdata ? DATA_POINTER(36, void) : (void*)indices;
    145145#else
    146146    indexptr = DATA_POINTER(32, void);
  • trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_bufferobject.c

    r21422 r21423  
    2828    GLsizeiptrARB size = READ_DATA(sizeof(int) + 8, GLuint);
    2929    GLenum usage       = READ_DATA(sizeof(int) + 12, GLenum);
    30     GLboolean hasdata  = READ_DATA(sizeof(int) + 16, GLboolean);
    31     GLvoid *data       = DATA_POINTER(sizeof(int) + 16 + sizeof(GLboolean), GLvoid);
     30    GLboolean hasdata  = READ_DATA(sizeof(int) + 16, GLint);
     31    GLvoid *data       = DATA_POINTER(sizeof(int) + 20, GLvoid);
    3232
    3333    cr_unpackDispatch.BufferDataARB(target, size, hasdata ? data:NULL, usage);
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