VirtualBox

Changeset 76236 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 14, 2018 4:02:17 PM (6 years ago)
Author:
vboxsync
Message:

DevVGA-SVGA: fixed detection of shading language version on Darwin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp

    r75811 r76236  
    908908     */
    909909    /** @todo distinguish between vertex and pixel shaders??? */
     910#ifdef VBOX_VMSVGA3D_DUAL_OPENGL_PROFILE /* The alternative profile has a higher number here (ati/darwin). */
     911    VMSVGA3D_SET_CURRENT_CONTEXT(pState, pOtherCtx);
    910912    const char *pszShadingLanguageVersion = (const char *)glGetString(GL_SHADING_LANGUAGE_VERSION);
     913    VMSVGA3D_SET_CURRENT_CONTEXT(pState, pContext);
     914#else
     915    const char *pszShadingLanguageVersion = (const char *)glGetString(GL_SHADING_LANGUAGE_VERSION);
     916#endif
    911917    float v = pszShadingLanguageVersion ? atof(pszShadingLanguageVersion) : 0.0f;
    912918    if (v >= 3.30f)
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