VirtualBox

Changeset 43051 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Aug 28, 2012 3:35:26 PM (12 years ago)
Author:
vboxsync
Message:

crOpenGL: program/shader objects fixes for proper saved state handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_getshaders.c

    r40479 r43051  
    255255GLuint SERVER_DISPATCH_APIENTRY crServerDispatchCreateShader(GLenum type)
    256256{
    257     GLuint retval;
    258     retval = cr_server.head_spu->dispatch_table.CreateShader(type);
    259     crStateCreateShader(retval, type);
     257    GLuint retval, hwVal;
     258    hwVal = cr_server.head_spu->dispatch_table.CreateShader(type);
     259    retval = crStateCreateShader(hwVal, type);
    260260    crServerReturnValue(&retval, sizeof(retval));
    261261    return retval; /* ignored */
     
    264264GLuint SERVER_DISPATCH_APIENTRY crServerDispatchCreateProgram(void)
    265265{
    266     GLuint retval;
    267     retval = cr_server.head_spu->dispatch_table.CreateProgram();
    268     crStateCreateProgram(retval);
     266    GLuint retval, hwVal;
     267    hwVal = cr_server.head_spu->dispatch_table.CreateProgram();
     268    retval = crStateCreateProgram(hwVal);
    269269    crServerReturnValue(&retval, sizeof(retval));
    270270    return retval; /* ignored */
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