From 31975cf8f52c3b7020249cccd367f82761c2d15b Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Thu, 11 Apr 2013 23:25:36 +0000 Subject: [PATCH] Update debug GL backend to match r8633 git-svn-id: http://skia.googlecode.com/svn/trunk@8637 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/gl/debug/GrGLCreateDebugInterface.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp b/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp index b95b888e19..2d7b044223 100644 --- a/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp +++ b/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp @@ -202,7 +202,9 @@ GrGLvoid GR_GL_FUNCTION_TYPE debugGLReadPixels(GrGLint x, GrGLvoid GR_GL_FUNCTION_TYPE debugGLBindFramebuffer(GrGLenum target, GrGLuint frameBufferID) { - GrAlwaysAssert(GR_GL_FRAMEBUFFER == target); + GrAlwaysAssert(GR_GL_FRAMEBUFFER == target || + GR_GL_READ_FRAMEBUFFER == target || + GR_GL_DRAW_FRAMEBUFFER); // a frameBufferID of 0 is acceptable - it binds to the default // frame buffer