Generate Lod0 functions even if they don't contain gradients, so we can call…

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
parent 679280b2
#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)
......
......@@ -1445,7 +1445,7 @@ bool OutputHLSL::visitAggregate(Visit visit, TIntermAggregate *node)
if (mContainsLoopDiscontinuity && !mOutputLod0Function)
{
if (name != "main" && containsGradientOperation(node))
if (name != "main")
{
mOutputLod0Function = true;
node->traverse(this);
......
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