aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/debug
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-03-17 12:33:33 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-17 12:33:33 -0700
commitdc963b9264908f53650c40a97cff414101dd3e88 (patch)
treed5cc25b979332459fcbf794ab343a282f923752b /src/gpu/gl/debug
parent9d2049db6e4332d0c35e00b1d7fb075a839205a1 (diff)
Improve tracking of bound FBOs in GrGLGpu.
Diffstat (limited to 'src/gpu/gl/debug')
-rw-r--r--src/gpu/gl/debug/GrGLCreateDebugInterface.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp b/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp
index 77a1422af1..b4643cc6d7 100644
--- a/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp
+++ b/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp
@@ -382,7 +382,8 @@ GrGLvoid GR_GL_FUNCTION_TYPE debugGLReadPixels(GrGLint x,
GrGLenum renderbuffertarget,
GrGLuint renderBufferID) {
- GrAlwaysAssert(GR_GL_FRAMEBUFFER == target);
+ GrAlwaysAssert(GR_GL_FRAMEBUFFER == target || GR_GL_READ_FRAMEBUFFER == target ||
+ GR_GL_DRAW_FRAMEBUFFER == target);
GrAlwaysAssert(GR_GL_COLOR_ATTACHMENT0 == attachment ||
GR_GL_DEPTH_ATTACHMENT == attachment ||
GR_GL_STENCIL_ATTACHMENT == attachment);
@@ -422,7 +423,8 @@ GrGLvoid GR_GL_FUNCTION_TYPE debugGLReadPixels(GrGLint x,
GrGLuint textureID,
GrGLint level) {
- GrAlwaysAssert(GR_GL_FRAMEBUFFER == target);
+ GrAlwaysAssert(GR_GL_FRAMEBUFFER == target || GR_GL_READ_FRAMEBUFFER == target ||
+ GR_GL_DRAW_FRAMEBUFFER == target);
GrAlwaysAssert(GR_GL_COLOR_ATTACHMENT0 == attachment ||
GR_GL_DEPTH_ATTACHMENT == attachment ||
GR_GL_STENCIL_ATTACHMENT == attachment);