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

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

Issue 2104943003: Add a useful DCHECK to RestoreCurrentTextureBindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 e1eea99544f79a8640fd96780d5741671a91c3a0..f8a9f9af69597e1f292ee95bc239a804429afa5d 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -2296,6 +2296,7 @@ ScopedGLErrorSuppressor::~ScopedGLErrorSuppressor() {
}
static void RestoreCurrentTextureBindings(ContextState* state, GLenum target) {
+ DCHECK(!state->texture_units.empty());
TextureUnit& info = state->texture_units[0];
GLuint last_id;
scoped_refptr<TextureRef>& texture_ref = info.GetInfoForTarget(target);
« 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