Mesa (master): mesa: re-enable _mesa_source_buffer_exists() call

Brian Paul brianp at kemper.freedesktop.org
Thu Jul 30 19:33:02 UTC 2009


Module: Mesa
Branch: master
Commit: 9c936403de1aa868de1218deb2b93344b0d8d95d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9c936403de1aa868de1218deb2b93344b0d8d95d

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Jul 30 10:04:38 2009 -0600

mesa: re-enable _mesa_source_buffer_exists() call

Somehow this code wound up inside a comment a while back.

---

 src/mesa/main/teximage.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 6348ec0..825f5e2 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -1869,14 +1869,14 @@ copytexture_error_check( GLcontext *ctx, GLuint dimensions,
       return GL_TRUE;
    }
 
-   /* NOTE: the format and type aren't really significant for
-    * TestProxyTexImage().  Only the internalformat really matters.
    if (!_mesa_source_buffer_exists(ctx, format)) {
       _mesa_error(ctx, GL_INVALID_OPERATION,
                   "glCopyTexImage%dD(missing readbuffer)", dimensions);
       return GL_TRUE;
    }
 
+   /* NOTE: the format and type aren't really significant for
+    * TestProxyTexImage().  Only the internalformat really matters.
     */
    type = GL_FLOAT;
 




More information about the mesa-commit mailing list