summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/PixelShaderGen.cpp
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2014-09-27 13:25:16 +1000
committerskidau <skidau@gmail.com>2014-09-27 13:25:16 +1000
commit23e2301223460e23811048fe4aa576f169d0866e (patch)
treea00eb38da34de1ef9fd240eefa351351baa0b983 /Source/Core/VideoCommon/PixelShaderGen.cpp
parentf5bbfa139dac5f5c80c8f9aba2d1a6fcc11c1ea5 (diff)
parent539f270c67c8dcd422e59dc87df4482542c82366 (diff)
Merge pull request #1154 from skidau/undeclared-uv0-fix
Fixed the "Undeclared identifier: uv0" OpenGL shader compile error that appears in NBA2K11.
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp')
-rw-r--r--Source/Core/VideoCommon/PixelShaderGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp
index 8e90713fd0..dec20636a9 100644
--- a/Source/Core/VideoCommon/PixelShaderGen.cpp
+++ b/Source/Core/VideoCommon/PixelShaderGen.cpp
@@ -318,7 +318,7 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T
// compute window position if needed because binding semantic WPOS is not widely supported
// Let's set up attributes
- for (unsigned int i = 0; i < xfmem.numTexGen.numTexGens; ++i)
+ for (unsigned int i = 0; i < numTexgen; ++i)
{
out.Write("centroid in float3 uv%d;\n", i);
}