From: José Fonseca Date: Tue, 6 Jan 2009 16:01:11 +0000 (+0000) Subject: mesa: Use explicit casts when precision is lost. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0db6804699e9d01a7957f853ce6ebfccbcd9906f;p=mesa.git mesa: Use explicit casts when precision is lost. Silences MSVC. --- diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index f72aa6a2882..8122c9f88f9 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -2137,7 +2137,7 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params ) params[0] = (GLfloat)(ctx->DrawBuffer->Visual.depthBits); break; case GL_DEPTH_CLEAR_VALUE: - params[0] = ctx->Depth.Clear; + params[0] = (GLfloat)(ctx->Depth.Clear); break; case GL_DEPTH_FUNC: params[0] = ENUM_TO_FLOAT(ctx->Depth.Func);