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

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

Issue 1107683002: Fix GL error occuring on pbuffer surface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: don't enable double buffering, just don't execute problematic part when we don't need to Created 5 years, 8 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 | no next file » | 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 04a9eb25443cb2a25d52400ba714c850ea63eca6..9c43f88e81fe60ef82b0bf17e41c2781350164c3 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -2737,7 +2737,7 @@ bool GLES2DecoderImpl::Initialize(
// make it appear RGB. If on the other hand we ask for RGBA nd get RGB we
// can't do anything about that.
- if (!surfaceless_) {
+ if (!surfaceless_ && !surface_->IsOffscreen()) {
GLint alpha_bits = 0;
GLint depth_bits = 0;
GLint stencil_bits = 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698