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

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

Issue 1106773002: gpu: Disallow zero sized offscreen framebuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed glGetError dcheck 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
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..86a6c672be4160b64833d9fe9597fa11c91b1633 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -2464,6 +2464,7 @@ bool GLES2DecoderImpl::Initialize(
TRACE_EVENT0("gpu", "GLES2DecoderImpl::Initialize");
DCHECK(context->IsCurrent(surface.get()));
DCHECK(!context_.get());
+ DCHECK(!offscreen || !offscreen_size.IsEmpty());
hendrikw 2015/04/24 18:33:39 In my first change, I also DCHECK'd that glGetErro
ContextCreationAttribHelper attrib_parser;
if (!attrib_parser.Parse(attribs))

Powered by Google App Engine
This is Rietveld 408576698