summaryrefslogtreecommitdiff
path: root/src/mesa/main/dlist.c
diff options
context:
space:
mode:
authorKarl Schultz <kschultz@freedesktop.org>2003-08-30 14:45:04 +0000
committerKarl Schultz <kschultz@freedesktop.org>2003-08-30 14:45:04 +0000
commitdc24230de7f913969b52dee3579bb8fa3d50a8c0 (patch)
tree721e30477f9c529d562fa4bd2b71e465b4ed7fd0 /src/mesa/main/dlist.c
parentd12a871b21adee531661f4cf6561d2ffda685359 (diff)
Silence compiler warnings about implicit casts or conversions by supplying explicit casts and/or tweaking constant and variable definitions.
Diffstat (limited to 'src/mesa/main/dlist.c')
-rw-r--r--src/mesa/main/dlist.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index 1ebc4a086e..abfc2dfff8 100644
--- a/src/mesa/main/dlist.c
+++ b/src/mesa/main/dlist.c
@@ -4265,10 +4265,10 @@ save_ProgramLocalParameter4dARB(GLenum target, GLuint index,
if (n) {
n[1].e = target;
n[2].ui = index;
- n[3].f = x;
- n[4].f = y;
- n[5].f = z;
- n[6].f = w;
+ n[3].f = (GLfloat) x;
+ n[4].f = (GLfloat) y;
+ n[5].f = (GLfloat) z;
+ n[6].f = (GLfloat) w;
}
if (ctx->ExecuteFlag) {
(*ctx->Exec->ProgramLocalParameter4dARB)(target, index, x, y, z, w);
@@ -4287,10 +4287,10 @@ save_ProgramLocalParameter4dvARB(GLenum target, GLuint index,
if (n) {
n[1].e = target;
n[2].ui = index;
- n[3].f = params[0];
- n[4].f = params[1];
- n[5].f = params[2];
- n[6].f = params[3];
+ n[3].f = (GLfloat) params[0];
+ n[4].f = (GLfloat) params[1];
+ n[5].f = (GLfloat) params[2];
+ n[6].f = (GLfloat) params[3];
}
if (ctx->ExecuteFlag) {
(*ctx->Exec->ProgramLocalParameter4dvARB)(target, index, params);
@@ -4383,8 +4383,8 @@ static void save_DepthBoundsEXT( GLclampd zmin, GLclampd zmax )
ASSERT_OUTSIDE_SAVE_BEGIN_END_AND_FLUSH(ctx);
n = ALLOC_INSTRUCTION( ctx, OPCODE_ACTIVE_STENCIL_FACE_EXT, 2 );
if (n) {
- n[1].f = zmin;
- n[2].f = zmax;
+ n[1].f = (GLfloat) zmin;
+ n[2].f = (GLfloat) zmax;
}
if (ctx->ExecuteFlag) {
(*ctx->Exec->DepthBoundsEXT)( zmin, zmax );