Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 2376033004: Add isnan() workaround for Intel Mac (Closed)
Patch Set: Rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpu/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 8f7c3f4395b5605e8998d9621c785ccd9a9f4758..03f41575f6e154b0a1e853a73ca5983c1b263544 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -3764,6 +3764,8 @@ bool GLES2DecoderImpl::InitializeShaderTranslator() {
driver_bug_workarounds |= SH_ADD_AND_TRUE_TO_LOOP_CONDITION;
if (workarounds().rewrite_do_while_loops)
driver_bug_workarounds |= SH_REWRITE_DO_WHILE_LOOPS;
+ if (workarounds().emulate_isnan_on_float)
+ driver_bug_workarounds |= SH_EMULATE_ISNAN_FLOAT_FUNCTION;
resources.WEBGL_debug_shader_precision =
group_->gpu_preferences().emulate_shader_precision;
« no previous file with comments | « no previous file | gpu/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698