Commit 8e036d64 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Correct a pixel shader version comparison.

parent cd858dfa
...@@ -612,7 +612,7 @@ void shader_generate_glsl_declarations( ...@@ -612,7 +612,7 @@ void shader_generate_glsl_declarations(
/* Declare input register varyings. Only pixel shader, vertex shaders have that declared in the /* Declare input register varyings. Only pixel shader, vertex shaders have that declared in the
* helper function shader that is linked in at link time * helper function shader that is linked in at link time
*/ */
if(pshader && This->baseShader.hex_version >= WINED3DVS_VERSION(3, 0)) { if(pshader && This->baseShader.hex_version >= WINED3DPS_VERSION(3, 0)) {
if(use_vs(device)) { if(use_vs(device)) {
shader_addline(buffer, "varying vec4 IN[%u];\n", GL_LIMITS(glsl_varyings) / 4); shader_addline(buffer, "varying vec4 IN[%u];\n", GL_LIMITS(glsl_varyings) / 4);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment