VirtualBox

Changeset 21563 in vbox


Ignore:
Timestamp:
Jul 14, 2009 8:44:22 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
50039
Message:

crOpenGL: fix some rare crashes when using server side VBOs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_client.c

    r21379 r21563  
    598598    }
    599599
    600     if (size != 3)
     600    /*Note: According to opengl spec, only size==3 should be accepted here.
     601     *But it turns out that most drivers accept size==4 here as well, and 4th value
     602     *could even be accessed in shaders code.
     603     *Having a strict check here, leads to difference between guest and host gpu states, which
     604     *in turn could lead to crashes when using server side VBOs.
     605     *@todo: add error reporting to state's VBO related functions and abort dispatching to
     606     *real gpu on any failure to prevent other possible issues.
     607     */
     608
     609    if ((size != 3) && (size != 4))
    601610    {
    602611        crStateError(__LINE__, __FILE__, GL_INVALID_VALUE, "glSecondaryColorPointerEXT: invalid size: %d", size);
Note: See TracChangeset for help on using the changeset viewer.

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