aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/fbobject.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-04-13 19:17:13 +0000
committerBrian Paul <[email protected]>2006-04-13 19:17:13 +0000
commit13abf91b42b00c7eb64c373aff3a4c1bb3d8fb7f (patch)
tree2feb39f808660ac82a768c1799d2ddbbd6f3eff1 /src/mesa/main/fbobject.c
parentad38681a00fc13449b76c2bf1fde0d31b0f9aec8 (diff)
casts to fix some -pedantic warnings
Diffstat (limited to 'src/mesa/main/fbobject.c')
-rw-r--r--src/mesa/main/fbobject.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index cec38381613..807fac0a393 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -391,6 +391,8 @@ test_attachment_completeness(const GLcontext *ctx, GLenum format,
static void
fbo_incomplete(const char *msg, int index)
{
+ (void) msg;
+ (void) index;
/*
_mesa_debug(NULL, "FBO Incomplete: %s [%d]\n", msg, index);
*/
@@ -751,12 +753,12 @@ _mesa_RenderbufferStorageEXT(GLenum target, GLenum internalFormat,
return;
}
- if (width < 1 || width > ctx->Const.MaxRenderbufferSize) {
+ if (width < 1 || width > (GLsizei) ctx->Const.MaxRenderbufferSize) {
_mesa_error(ctx, GL_INVALID_VALUE, "glRenderbufferStorageEXT(width)");
return;
}
- if (height < 1 || height > ctx->Const.MaxRenderbufferSize) {
+ if (height < 1 || height > (GLsizei) ctx->Const.MaxRenderbufferSize) {
_mesa_error(ctx, GL_INVALID_VALUE, "glRenderbufferStorageEXT(height)");
return;
}
@@ -771,8 +773,8 @@ _mesa_RenderbufferStorageEXT(GLenum target, GLenum internalFormat,
FLUSH_VERTICES(ctx, _NEW_BUFFERS);
if (rb->InternalFormat == internalFormat &&
- rb->Width == width &&
- rb->Height == height) {
+ rb->Width == (GLuint) width &&
+ rb->Height == (GLuint) height) {
/* no change in allocation needed */
return;
}
@@ -792,8 +794,8 @@ _mesa_RenderbufferStorageEXT(GLenum target, GLenum internalFormat,
if (rb->AllocStorage(ctx, rb, internalFormat, width, height)) {
/* No error - check/set fields now */
assert(rb->_ActualFormat);
- assert(rb->Width == width);
- assert(rb->Height == height);
+ assert(rb->Width == (GLuint) width);
+ assert(rb->Height == (GLuint) height);
assert(rb->RedBits || rb->GreenBits || rb->BlueBits || rb->AlphaBits ||
rb->DepthBits || rb->StencilBits || rb->IndexBits);
rb->InternalFormat = internalFormat;