diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-01-06 16:01:11 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-01-08 12:04:59 +0000 |
commit | 0db6804699e9d01a7957f853ce6ebfccbcd9906f (patch) | |
tree | 3c51832fff586954a20118f314f7ade6df4dea76 /src/mesa | |
parent | ca337076b3be03469f0170c1bf85d9611831886c (diff) |
mesa: Use explicit casts when precision is lost.
Silences MSVC.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/get.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index f72aa6a288..8122c9f88f 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); |