Index: src/gpu/gl/debug/GrGLCreateDebugInterface.cpp |
diff --git a/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp b/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp |
index 41623311d4cab9073c2050acf3c7b7f533e9b0f1..0666fddc4940f91c32ee28cd19afa544271c29bc 100644 |
--- a/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp |
+++ b/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp |
@@ -368,7 +368,9 @@ GrGLvoid GR_GL_FUNCTION_TYPE debugGLReadPixels(GrGLint x, |
// bound frame buffer |
GrAlwaysAssert(!buffer->getColorBound()); |
GrAlwaysAssert(!buffer->getDepthBound()); |
- GrAlwaysAssert(!buffer->getStencilBound()); |
+ // However, at GrContext destroy time we release all GrRsources and so stencil buffers |
+ // may get deleted before FBOs that refer to them. |
+ //GrAlwaysAssert(!buffer->getStencilBound()); |
GrAlwaysAssert(!buffer->getDeleted()); |
buffer->deleteAction(); |