summaryrefslogtreecommitdiff
path: root/src/mesa/main/teximage.c
diff options
context:
space:
mode:
authorKarl Schultz <kschultz@freedesktop.org>2001-09-18 23:06:14 +0000
committerKarl Schultz <kschultz@freedesktop.org>2001-09-18 23:06:14 +0000
commit7b9fe820a3fba3849864682fbb1cb512362934ab (patch)
tree62fb4872296b4cb7ba0eae47fd47da994d01ada9 /src/mesa/main/teximage.c
parentc98541f54bad9c706092b1eae81739f78660b000 (diff)
more compiler warning fixes
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r--src/mesa/main/teximage.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 4206062b13..7838577db3 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -1,4 +1,4 @@
-/* $Id: teximage.c,v 1.103 2001/07/26 20:02:10 brianp Exp $ */
+/* $Id: teximage.c,v 1.104 2001/09/18 23:06:14 kschultz Exp $ */
/*
* Mesa 3-D graphics library
@@ -924,17 +924,17 @@ subtexture_error_check( GLcontext *ctx, GLuint dimensions,
}
if (compressed) {
- if (xoffset != -destTex->Border) {
+ if (xoffset != -((GLint)destTex->Border)) {
_mesa_error(ctx, GL_INVALID_OPERATION,
"glTexSubImage1/2/3D(xoffset != -border");
return GL_TRUE;
}
- if (dimensions > 1 && yoffset != -destTex->Border) {
+ if (dimensions > 1 && yoffset != -((GLint)destTex->Border)) {
_mesa_error(ctx, GL_INVALID_OPERATION,
"glTexSubImage2/3D(yoffset != -border");
return GL_TRUE;
}
- if (dimensions > 2 && zoffset != -destTex->Border) {
+ if (dimensions > 2 && zoffset != -((GLint)destTex->Border)) {
_mesa_error(ctx, GL_INVALID_OPERATION,
"glTexSubImage3D(zoffset != -border");
return GL_TRUE;
@@ -1164,17 +1164,17 @@ copytexsubimage_error_check( GLcontext *ctx, GLuint dimensions,
compressed = is_compressed_format(ctx, teximage->IntFormat);
if (compressed) {
- if (xoffset != -teximage->Border) {
+ if (xoffset != -((GLint)teximage->Border)) {
_mesa_error(ctx, GL_INVALID_OPERATION,
"glCopyTexSubImage1/2/3D(xoffset != -border");
return GL_TRUE;
}
- if (dimensions > 1 && yoffset != -teximage->Border) {
+ if (dimensions > 1 && yoffset != -((GLint)teximage->Border)) {
_mesa_error(ctx, GL_INVALID_OPERATION,
"glCopyTexSubImage2/3D(yoffset != -border");
return GL_TRUE;
}
- if (dimensions > 2 && zoffset != -teximage->Border) {
+ if (dimensions > 2 && zoffset != -((GLint)teximage->Border)) {
_mesa_error(ctx, GL_INVALID_OPERATION,
"glCopyTexSubImage3D(zoffset != -border");
return GL_TRUE;