mesa: Use explicit casts when precision is lost.

Silences MSVC.
This commit is contained in:
José Fonseca 2009-01-06 16:01:11 +00:00
parent ca337076b3
commit 0db6804699

View file

@ -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);