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

Unified Diff: core/cross/gles2/texture_gles2.cc

Issue 1741009: Pulled changes from issue 669220 to fix building with renderer=gles2. (Closed)
Patch Set: Created 10 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 | « core/cross/gles2/render_surface_gles2.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/cross/gles2/texture_gles2.cc
diff --git a/core/cross/gles2/texture_gles2.cc b/core/cross/gles2/texture_gles2.cc
index dcb652dfec6c4b3a846e7db57b98c6fe6fe8087a..b4da4e8c35b1bcd70007db7fda19919afabf1d5c 100644
--- a/core/cross/gles2/texture_gles2.cc
+++ b/core/cross/gles2/texture_gles2.cc
@@ -319,6 +319,7 @@ Texture2DGLES2* Texture2DGLES2::Create(ServiceLocator* service_locator,
bool enable_render_surfaces) {
DLOG(INFO) << "Texture2DGLES2 Create";
DCHECK_NE(format, Texture::UNKNOWN_FORMAT);
+ DCHECK_GE(levels, 0);
RendererGLES2 *renderer = static_cast<RendererGLES2 *>(
service_locator->GetService<Renderer>());
renderer->MakeCurrentLazy();
« no previous file with comments | « core/cross/gles2/render_surface_gles2.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698