Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1247)

Unified Diff: content/common/gpu/client/gl_helper.cc

Issue 10834249: Fix a misuse of framebuffer target in GLHelper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/gl_helper.cc
diff --git a/content/common/gpu/client/gl_helper.cc b/content/common/gpu/client/gl_helper.cc
index f28be72dab2c25d148a5af4903147808ed26a9a8..0d594ece3e321c8cefd91b87dc452e5c3661c40c 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,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698