Generate Lod0 functions even if they don't contain gradients, so we can call them from discontinuous loops.
TRAC #20737
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1128 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/common/version.h b/src/common/version.h
index c7c3267..abf323f 100644
--- a/src/common/version.h
+++ b/src/common/version.h
@@ -1,7 +1,7 @@
#define MAJOR_VERSION 1
#define MINOR_VERSION 0
#define BUILD_VERSION 0
-#define BUILD_REVISION 1124
+#define BUILD_REVISION 1128
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
diff --git a/src/compiler/OutputHLSL.cpp b/src/compiler/OutputHLSL.cpp
index d0733c7..929da70 100644
--- a/src/compiler/OutputHLSL.cpp
+++ b/src/compiler/OutputHLSL.cpp
@@ -1445,7 +1445,7 @@
if (mContainsLoopDiscontinuity && !mOutputLod0Function)
{
- if (name != "main" && containsGradientOperation(node))
+ if (name != "main")
{
mOutputLod0Function = true;
node->traverse(this);