Index: src/gpu/gl/debug/GrGLCreateDebugInterface.cpp |
diff --git a/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp b/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp |
index f5440fe31375c72cf63f72370c41c09c8bdeedd4..bcc3007650906656c1af1c0458fc2498c238813a 100644 |
--- a/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp |
+++ b/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp |
@@ -513,9 +513,10 @@ GrGLvoid debugGenObjs(GrDebugGL::GrObjTypes type, |
GrGLuint* ids) { |
for (int i = 0; i < n; ++i) { |
- GrFakeRefObj *obj = GrDebugGL::getInstance()->createObj(type); |
- GrAlwaysAssert(obj); |
- ids[i] = obj->getID(); |
+ GrAlwaysAssert(ids[i] == 0); |
+ GrFakeRefObj *obj = GrDebugGL::getInstance()->createObj(type); |
+ GrAlwaysAssert(obj); |
+ ids[i] = obj->getID(); |
} |
} |