mesa: fix double->float assignment warnings
authorBrian Paul <brianp@vmware.com>
Thu, 28 Jan 2010 00:02:29 +0000 (17:02 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 28 Jan 2010 00:04:30 +0000 (17:04 -0700)
Reported by Karl Schultz.

src/mesa/main/dlist.c

index 7db686c0aef2ee2e5b497b93f31248abe93ec879..b182bbe0d0011e23a8b85c9428208ff0b48e0cea 100644 (file)
@@ -3729,7 +3729,7 @@ save_TexEnvi(GLenum target, GLenum pname, GLint param)
 {
    GLfloat p[4];
    p[0] = (GLfloat) param;
-   p[1] = p[2] = p[3] = 0.0;
+   p[1] = p[2] = p[3] = 0.0F;
    save_TexEnvfv(target, pname, p);
 }
 
@@ -3863,7 +3863,7 @@ save_TexParameteri(GLenum target, GLenum pname, GLint param)
 {
    GLfloat fparam[4];
    fparam[0] = (GLfloat) param;
-   fparam[1] = fparam[2] = fparam[3] = 0.0;
+   fparam[1] = fparam[2] = fparam[3] = 0.0F;
    save_TexParameterfv(target, pname, fparam);
 }
 
@@ -3873,7 +3873,7 @@ save_TexParameteriv(GLenum target, GLenum pname, const GLint *params)
 {
    GLfloat fparam[4];
    fparam[0] = (GLfloat) params[0];
-   fparam[1] = fparam[2] = fparam[3] = 0.0;
+   fparam[1] = fparam[2] = fparam[3] = 0.0F;
    save_TexParameterfv(target, pname, fparam);
 }