Fix not correctly allowing the 'require' keyword in shaders enabling EXT_draw_buffers.

TRAC #22888 Signed-off-by: Nicolas Capens Signed-off-by: Shannon Woods Author: Jamie Madill git-svn-id: https://angleproject.googlecode.com/svn/branches/es3proto@2156 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 5209de8b
...@@ -211,9 +211,9 @@ void OutputHLSL::header() ...@@ -211,9 +211,9 @@ void OutputHLSL::header()
if (shaderType == SH_FRAGMENT_SHADER) if (shaderType == SH_FRAGMENT_SHADER)
{ {
TExtensionBehavior::const_iterator iter = mContext.extensionBehavior().find("GL_EXT_draw_buffers"); TExtensionBehavior::const_iterator iter = mContext.extensionBehavior().find("GL_EXT_draw_buffers");
bool usingMRTExtension = iter != mContext.extensionBehavior().end() && iter->second == EBhEnable; const bool usingMRTExtension = (iter != mContext.extensionBehavior().end() && (iter->second == EBhEnable || iter->second == EBhRequire));
unsigned int numColorValues = usingMRTExtension ? mNumRenderTargets : 1; const unsigned int numColorValues = usingMRTExtension ? mNumRenderTargets : 1;
out << "// Varyings\n"; out << "// Varyings\n";
out << varyings; out << varyings;
......
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