Commit 93563fcf by zmo@google.com

(Landing this on behalf of groby@chromium.org. Review the CL at…

(Landing this on behalf of groby@chromium.org. Review the CL at http://codereview.appspot.com/5482053/) Fix issue-242 (failure to compile any shader using cos() with SH_EMULATE_BUILT_IN_FUNCTIONS) ANGLEBUG=242 git-svn-id: https://angleproject.googlecode.com/svn/trunk@910 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent e19d8328
...@@ -333,12 +333,12 @@ void BuiltInFunctionEmulator::OutputEmulatedFunctionDefinition( ...@@ -333,12 +333,12 @@ void BuiltInFunctionEmulator::OutputEmulatedFunctionDefinition(
out << "// BEGIN: Generated code for built-in function emulation\n\n"; out << "// BEGIN: Generated code for built-in function emulation\n\n";
if (withPrecision) { if (withPrecision) {
out << "#if defined(GL_FRAGMENT_PRECISION_HIGH)\n" out << "#if defined(GL_FRAGMENT_PRECISION_HIGH)\n"
<< "#define webgl_emulation_precision highp\n" << "#define webgl_emu_precision highp\n"
<< "#else\n" << "#else\n"
<< "#define webgl_emulation_precision mediump\n" << "#define webgl_emu_precision mediump\n"
<< "#endif\n\n"; << "#endif\n\n";
} else { } else {
out << "#define webgl_emulation_precision\n\n"; out << "#define webgl_emu_precision\n\n";
} }
for (size_t i = 0; i < mFunctions.size(); ++i) { for (size_t i = 0; i < mFunctions.size(); ++i) {
out << mFunctionSource[mFunctions[i]] << "\n\n"; out << mFunctionSource[mFunctions[i]] << "\n\n";
......
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