VirtualBox

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

crOpenGL: fix GetProgram/Shaderiv

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

Legend:

Unmodified
Added
Removed
  • 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