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

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

Issue 10381137: Don't enable occlusion query on Linux with Intel drivers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
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 33d35d753f35c3a33d159680bdb7f541d0ebb0dc..8a5248680bab82a964c284a205b5020c423bb550 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -2236,12 +2236,10 @@ bool GLES2DecoderImpl::Initialize(
if (!disable_workarounds_) {
#if defined(OS_MACOSX)
- const char* vendor_str = reinterpret_cast<const char*>(
- glGetString(GL_VENDOR));
needs_mac_nvidia_driver_workaround_ =
- vendor_str && strstr(vendor_str, "NVIDIA");
+ feature_info_->feature_flags().is_nvidia;
needs_glsl_built_in_function_emulation_ =
- vendor_str && (strstr(vendor_str, "ATI") || strstr(vendor_str, "AMD"));
+ feature_info_->feature_flags().is_amd;
#endif
}
« no previous file with comments | « gpu/command_buffer/service/feature_info_unittest.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698