Changeset 58152 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/glsl_shader.c
- Timestamp:
- Oct 9, 2015 1:38:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/glsl_shader.c
r51270 r58152 1199 1199 for (i = 0, map = reg_maps->texcoord; map; map >>= 1, ++i) 1200 1200 { 1201 #ifdef VBOX_WITH_WINE_FIX_SHADER_DECL 1202 if (map & 1) shader_addline(buffer, "vec4 T%u;\n", i); 1203 #else 1201 1204 if (map & 1) shader_addline(buffer, "vec4 T%u = gl_TexCoord[%u];\n", i, i); 1205 #endif 1202 1206 } 1203 1207 … … 1327 1331 /* Start the main program. */ 1328 1332 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 1329 1341 1330 1342 /* Direct3D applications expect integer vPos values, while OpenGL drivers
Note:
See TracChangeset
for help on using the changeset viewer.