b=587304; fix no-op optimization back to what it really says; r=jrmuizel
authorVladimir Vukicevic <vladimir@pobox.com>
Sat, 14 Aug 2010 12:59:52 -0700
changeset 50607 1604f5408616d4aea3807344dc68c687af40a066
parent 50606 d9e9f5c865ebdf631e6af1333ef5474d086a81e5
child 50608 796b87a413fb276d062fd8e5aa07e72f93f35eba
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs587304
milestone2.0b4pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
b=587304; fix no-op optimization back to what it really says; r=jrmuizel
content/canvas/src/WebGLContextGL.cpp
--- a/content/canvas/src/WebGLContextGL.cpp
+++ b/content/canvas/src/WebGLContextGL.cpp
@@ -2858,17 +2858,17 @@ WebGLContext::CompileShader(nsIWebGLShad
         resources.maxFragmentUniformVectors = mGLMaxFragmentUniformVectors;
         resources.maxDrawBuffers = 1;
 
         compiler = ShConstructCompiler(lang, EShSpecWebGL, &resources);
 
         nsPromiseFlatCString src(shader->Source());
         const char *s = src.get();
 
-        if (!ShCompile(compiler, &s, 1, EShOptSimple, debugFlags)) {
+        if (!ShCompile(compiler, &s, 1, EShOptNone, debugFlags)) {
             const char* info = ShGetInfoLog(compiler);
             if (info) {
                 shader->SetTranslationFailure(nsDependentCString(info));
             } else {
                 shader->SetTranslationFailure(NS_LITERAL_CSTRING("Internal error: failed to get shader info log"));
             }
             ShDestruct(compiler);
             return NS_OK;