commit | 014b9a60ceda6b51a3fe9075f3a9aa1c29a5553e | [log] [tgz] |
---|---|---|
author | Nicolas Capens <capn@google.com> | Wed Oct 15 10:28:29 2014 -0400 |
committer | nicolascapens <nicolascapens@google.com> | Wed Oct 15 16:55:31 2014 +0000 |
tree | bc9d393d0383913d08e2e3bd7c54435c7a80e60b | |
parent | bbcc4e105446179cb60c1dfef653822a66d6ad89 [diff] [blame] |
Fix crash caused by missing shader function definition and report the error. BUG=17956386 Change-Id: I89f243b557b70401052b1f7db237fbc410386f64 Reviewed-on: https://swiftshader-review.googlesource.com/1190 Reviewed-by: Alexis Hétu <sugoi@google.com> Tested-by: <nicolascapens@google.com> Reviewed-by: <nicolascapens@google.com>
diff --git a/src/GLES2/compiler/Compiler.cpp b/src/GLES2/compiler/Compiler.cpp index 7a50274..d1b36c0 100644 --- a/src/GLES2/compiler/Compiler.cpp +++ b/src/GLES2/compiler/Compiler.cpp
@@ -121,7 +121,7 @@ intermediate.outputTree(root); if (success && (compileOptions & SH_OBJECT_CODE)) - translate(root); + success = translate(root); } // Cleanup memory.