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

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

Issue 11734037: Restore gl scissor state when switching FBO targets on Qualcomm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only update scissor Created 7 years, 11 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 | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/feature_info.cc
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index a7ca864576f3394cfd6a296a7497ea8559146190..059c4db852715e7712929f4958fbc0f8419f3eb6 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -92,6 +92,7 @@ FeatureInfo::Workarounds::Workarounds()
reverse_point_sprite_coord_origin(false),
set_texture_filter_before_generating_mipmap(false),
use_current_program_after_successful_link(false),
+ restore_scissor_on_fbo_change(false),
max_texture_size(0),
max_cube_map_texture_size(0) {
}
@@ -671,6 +672,10 @@ void FeatureInfo::AddFeatures(const char* desired_features) {
workarounds_.use_current_program_after_successful_link = true;
}
+ if (is_qualcomm) {
+ workarounds_.restore_scissor_on_fbo_change = true;
+ }
+
#if defined(OS_MACOSX)
workarounds_.needs_offscreen_buffer_workaround = is_nvidia;
workarounds_.needs_glsl_built_in_function_emulation = is_amd;
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698