blob: 1a237b63878cf79cc32efadf37610583a503a9bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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;
|