VirtualBox

Changeset 48247 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 3, 2013 12:30:47 PM (11 years ago)
Author:
vboxsync
Message:

crOpenGL: fix GetProgram/Shaderiv

Location:
trunk/src/VBox
Files:
3 edited

Legend:

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

    r46462 r48247  
    293293    }
    294294
    295     /* the id may not necesserily be hwid after save state restoration */
    296     while ((pShader = crStateGetShaderObj(stateId)) != NULL)
    297     {
    298         GLuint newStateId = stateId + 7;
    299         crDebug("Shader object %d already exists, generating a new one, %d", stateId, newStateId);
    300         stateId = newStateId;
    301     }
     295    Assert((pShader = crStateGetShaderObj(stateId)) == NULL);
    302296#endif
    303297
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_glsl.c

    r46453 r48247  
    150150}
    151151
     152void SERVER_DISPATCH_APIENTRY crServerDispatchGetProgramiv( GLuint program, GLenum pname, GLint * params )
     153{
     154    GLint local_params[1];
     155    (void) params;
     156    cr_server.head_spu->dispatch_table.GetProgramiv(crStateGetProgramHWID(program), pname, local_params);
     157    crServerReturnValue( &(local_params[0]), 1*sizeof(GLint) );
     158}
     159
     160void SERVER_DISPATCH_APIENTRY crServerDispatchGetShaderiv( GLuint shader, GLenum pname, GLint * params )
     161{
     162    GLint local_params[1];
     163    (void) params;
     164    cr_server.head_spu->dispatch_table.GetShaderiv( crStateGetShaderHWID(shader), pname, local_params );
     165    crServerReturnValue( &(local_params[0]), 1*sizeof(GLint) );
     166}
    152167#endif /* #ifdef CR_OPENGL_VERSION_2_0 */
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_special

    r44740 r48247  
    252252VBoxTexPresent
    253253GetError
     254GetProgramiv
     255GetShaderiv
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