VirtualBox

Changeset 20392 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jun 8, 2009 11:08:08 AM (16 years ago)
Author:
vboxsync
Message:

crOpenGL: add glsl version to getstring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_getstring.c

    r20182 r20392  
    7070}
    7171
     72#ifdef CR_OPENGL_VERSION_2_0
     73static GLubyte gpszShadingVersion[255]="";
     74#endif
    7275
    7376const GLubyte * PACKSPU_APIENTRY packspu_GetString( GLenum name )
    7477{
    7578    GET_CONTEXT(ctx);
     79
    7680    if (name == GL_EXTENSIONS)
    7781    {
     
    8488        return (const GLubyte *) ctx->glVersion;
    8589    }
     90#ifdef CR_OPENGL_VERSION_2_0
     91    else if (name == GL_SHADING_LANGUAGE_VERSION)
     92    {
     93        GET_THREAD(thread);
     94        int writeback = 1;
     95
     96        crPackGetString(GL_SHADING_LANGUAGE_VERSION, gpszShadingVersion, &writeback);
     97        packspuFlush( (void *) thread );
     98
     99        while (writeback)
     100            crNetRecv();
     101
     102        return gpszShadingVersion;
     103    }
     104#endif
    86105    else
    87106    {
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