[gegl/gsoc2009-gpu] GeglGpuTexture: remove redundant call to glFramebufferTexture2DEXT()
- From: Jerson Michael Perpetua <jperpetua src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gegl/gsoc2009-gpu] GeglGpuTexture: remove redundant call to glFramebufferTexture2DEXT()
- Date: Wed, 19 Aug 2009 22:52:41 +0000 (UTC)
commit ceb777be21df50e9cb05018c9ef6ac32380a1043
Author: Jerson Michael Perpetua <jersonperpetua gmail com>
Date: Thu Aug 20 06:48:27 2009 +0800
GeglGpuTexture: remove redundant call to glFramebufferTexture2DEXT()
gegl/gpu/gegl-gpu-texture.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/gegl/gpu/gegl-gpu-texture.c b/gegl/gpu/gegl-gpu-texture.c
index 2527c7d..2d124db 100644
--- a/gegl/gpu/gegl-gpu-texture.c
+++ b/gegl/gpu/gegl-gpu-texture.c
@@ -220,14 +220,6 @@ gegl_gpu_texture_copy (const GeglGpuTexture *src,
else
roi = src_rect;
- glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT,
- GL_COLOR_ATTACHMENT0_EXT,
- GL_TEXTURE_RECTANGLE_ARB,
- src->handle,
- 0);
-
- glReadBuffer(GL_COLOR_ATTACHMENT0_EXT);
-
if (src->format == dest->format)
{
glFramebufferTexture2DEXT (GL_FRAMEBUFFER_EXT,
@@ -236,6 +228,8 @@ gegl_gpu_texture_copy (const GeglGpuTexture *src,
src->handle,
0);
+ glReadBuffer(GL_COLOR_ATTACHMENT0_EXT);
+
glBindTexture (GL_TEXTURE_RECTANGLE_ARB, dest->handle);
glCopyTexSubImage2D (GL_TEXTURE_RECTANGLE_ARB,
0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]