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

Unified Diff: src/gpu/gl/debug/GrGLCreateDebugInterface.cpp

Issue 12533007: Use vertex array objects on core profiles. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Use vertex array objects on core profiles. Created 7 years, 9 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: src/gpu/gl/debug/GrGLCreateDebugInterface.cpp
===================================================================
--- src/gpu/gl/debug/GrGLCreateDebugInterface.cpp (revision 8015)
+++ src/gpu/gl/debug/GrGLCreateDebugInterface.cpp (working copy)
@@ -559,7 +559,7 @@
GrGLvoid GR_GL_FUNCTION_TYPE debugGLBindVertexArray(GrGLuint id) {
GrVertexArrayObj* array = GR_FIND(id, GrVertexArrayObj, GrDebugGL::kVertexArray_ObjTypes);
- GrAlwaysAssert(array);
+ GrAlwaysAssert((0 == id) || NULL != array);
GrDebugGL::getInstance()->setVertexArray(array);
}

Powered by Google App Engine
This is Rietveld 408576698