mesa: rename function to _mesa_is_format_integer_color()

Be a bit more clear about its operation.
This commit is contained in:
Brian Paul
2010-10-26 20:30:40 -06:00
parent ab50148fda
commit 412b960883
5 changed files with 6 additions and 6 deletions

View File

@@ -2107,9 +2107,9 @@ copytexsubimage_error_check2( struct gl_context *ctx, GLuint dimensions,
/* If copying into an integer texture, the source buffer must also be
* integer-valued.
*/
if (_mesa_is_format_integer(teximage->TexFormat)) {
if (_mesa_is_format_integer_color(teximage->TexFormat)) {
struct gl_renderbuffer *rb = ctx->ReadBuffer->_ColorReadBuffer;
if (!_mesa_is_format_integer(rb->Format)) {
if (!_mesa_is_format_integer_color(rb->Format)) {
_mesa_error(ctx, GL_INVALID_OPERATION,
"glCopyTexSubImage%dD(source buffer is not integer format)",
dimensions);