VirtualBox

Ignore:
Timestamp:
Oct 9, 2015 1:38:57 PM (9 years ago)
Author:
vboxsync
Message:

WDDM: wine workaround for Intel GLSL compiler quirk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/glsl_shader.c

    r51270 r58152  
    11991199    for (i = 0, map = reg_maps->texcoord; map; map >>= 1, ++i)
    12001200    {
     1201#ifdef VBOX_WITH_WINE_FIX_SHADER_DECL
     1202        if (map & 1) shader_addline(buffer, "vec4 T%u;\n", i);
     1203#else
    12011204        if (map & 1) shader_addline(buffer, "vec4 T%u = gl_TexCoord[%u];\n", i, i);
     1205#endif
    12021206    }
    12031207
     
    13271331    /* Start the main program. */
    13281332    shader_addline(buffer, "void main()\n{\n");
     1333
     1334#ifdef VBOX_WITH_WINE_FIX_SHADER_DECL
     1335    /* Initialize texture coordinate temporaries. */
     1336    for (i = 0, map = reg_maps->texcoord; map; map >>= 1, ++i)
     1337    {
     1338        if (map & 1) shader_addline(buffer, "T%u = gl_TexCoord[%u];\n", i, i);
     1339    }
     1340#endif
    13291341
    13301342    /* Direct3D applications expect integer vPos values, while OpenGL drivers
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