From: Brian Paul Date: Thu, 28 Jan 2010 00:02:29 +0000 (-0700) Subject: mesa: fix double->float assignment warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6703fb1917a79889df31777682283556c31e30bd;p=mesa.git mesa: fix double->float assignment warnings Reported by Karl Schultz. --- diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index 7db686c0aef..b182bbe0d00 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -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); }