VirtualBox

Changeset 20392 in vbox for trunk


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

crOpenGL: add glsl version to getstring

Location:
trunk/src/VBox
Files:
2 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    {
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c

    r18760 r20392  
    996996        return (const GLubyte *) tempStr;
    997997    }
     998#ifdef CR_OPENGL_VERSION_2_0
     999    else if (pname == GL_SHADING_LANGUAGE_VERSION)
     1000        return render_spu.ws.glGetString(GL_SHADING_LANGUAGE_VERSION);
     1001#endif
    9981002    else
    9991003        return NULL;
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