summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/teximage.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-10-26 20:30:40 -0600
committerBrian Paul <[email protected]>2010-10-26 20:30:42 -0600
commit412b9608838b872bc294569b3ee913343a7e66f6 (patch)
treeb73e1298101d5df0478e1568153246e6b74ab6ce /src/mesa/main/teximage.c
parentab50148fdafeb6496b4ab684e5b9a2355ccf542c (diff)
mesa: rename function to _mesa_is_format_integer_color()
Be a bit more clear about its operation.
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r--src/mesa/main/teximage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index b65a2de046e..2e9410f2717 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -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);