From: Brian Paul Date: Thu, 30 Jul 2009 16:04:38 +0000 (-0600) Subject: mesa: re-enable _mesa_source_buffer_exists() call X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c936403de1aa868de1218deb2b93344b0d8d95d;p=mesa.git mesa: re-enable _mesa_source_buffer_exists() call Somehow this code wound up inside a comment a while back. --- diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 6348ec09f79..825f5e26bff 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;