VirtualBox

Changeset 21423 in vbox for trunk/src/VBox/GuestHost


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

crOpenGL: fix VBOs on NVidia cards

Location:
trunk/src/VBox/GuestHost/OpenGL/packer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_bufferobject.c

    r21422 r21423  
    4141
    4242    packet_length = sizeof(GLenum)
    43         + sizeof(target) + sizeof(GLuint) + sizeof(usage) + sizeof(GLboolean);
     43        + sizeof(target) + sizeof(GLuint) + sizeof(usage) + sizeof(GLint);
    4444
    4545    /*Note: it's valid to pass a NULL pointer here, which tells GPU drivers to allocate memory for the VBO*/
     
    5252    WRITE_DATA_AI(GLuint, (GLuint) size);
    5353    WRITE_DATA_AI(GLenum, usage);
    54     WRITE_DATA_AI(GLboolean, (GLboolean) (data!=NULL));
     54    WRITE_DATA_AI(GLint, (GLint) (data!=NULL));
    5555    if (data)
    5656         crMemcpy(data_ptr, data, size);
  • trunk/src/VBox/GuestHost/OpenGL/packer/pack_client.c

    r21422 r21423  
    468468#ifdef CR_ARB_vertex_buffer_object
    469469    CRBufferObject *elementsBuffer = crStateGetCurrent()->bufferobject.elementsBuffer;
    470     packet_length += sizeof(GLboolean);
     470    packet_length += sizeof(GLint);
    471471    if (elementsBuffer && elementsBuffer->name)
    472472    {
     
    494494    WRITE_DATA_AI(GLuint, (GLuint) indices );
    495495#ifdef CR_ARB_vertex_buffer_object
    496     WRITE_DATA_AI(GLboolean, (GLboolean)(indexsize>0));
     496    WRITE_DATA_AI(GLint, (GLint)(indexsize>0));
    497497#endif
    498498    if (indexsize>0)
     
    515515#ifdef CR_ARB_vertex_buffer_object
    516516    CRBufferObject *elementsBuffer = crStateGetCurrent()->bufferobject.elementsBuffer;
    517     packet_length += sizeof(GLboolean);
     517    packet_length += sizeof(GLint);
    518518    if (elementsBuffer && elementsBuffer->name)
    519519    {
     
    543543    WRITE_DATA_AI(GLuint, (GLuint) indices);
    544544#ifdef CR_ARB_vertex_buffer_object
    545     WRITE_DATA_AI(GLboolean, (GLboolean) (indexsize>0));
     545    WRITE_DATA_AI(GLint, (GLint) (indexsize>0));
    546546#endif
    547547    if (indexsize>0)
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