summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authormazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-09 23:40:50 +0000
committermazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-09 23:40:50 +0000
commit79f1ebd711a9126a114245e51fe968861ac507cc (patch)
tree6bb4d1de80dfb8c42a454e7e4cb4fb36450b40f4 /content
parent633943832457e007642dac5b358460ec3827eebd (diff)
downloadchromium_src-79f1ebd711a9126a114245e51fe968861ac507cc.zip
chromium_src-79f1ebd711a9126a114245e51fe968861ac507cc.tar.gz
chromium_src-79f1ebd711a9126a114245e51fe968861ac507cc.tar.bz2
Fix a misuse of framebuffer target in GLHelper.
BUG=chrome-os-partner:11070 Review URL: https://chromiumcodereview.appspot.com/10834249 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150943 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/common/gpu/client/gl_helper.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/common/gpu/client/gl_helper.cc b/content/common/gpu/client/gl_helper.cc
index f28be72..0d594ec 100644
--- a/content/common/gpu/client/gl_helper.cc
+++ b/content/common/gpu/client/gl_helper.cc
@@ -547,11 +547,11 @@ void GLHelper::CopyTextureToImpl::ReadBackFramebuffer(
size = request->size;
{
ScopedFlush flush(context);
- ScopedFramebufferBinder<GL_DRAW_FRAMEBUFFER> framebuffer_binder(
+ ScopedFramebufferBinder<GL_READ_FRAMEBUFFER> framebuffer_binder(
context, dst_framebuffer);
ScopedTextureBinder<GL_TEXTURE_2D> texture_binder(
context, request->texture);
- context->framebufferTexture2D(GL_DRAW_FRAMEBUFFER,
+ context->framebufferTexture2D(GL_READ_FRAMEBUFFER,
GL_COLOR_ATTACHMENT0,
GL_TEXTURE_2D,
request->texture,