projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca33707
)
mesa: Use explicit casts when precision is lost.
author
José Fonseca
<jfonseca@vmware.com>
Tue, 6 Jan 2009 16:01:11 +0000
(16:01 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 8 Jan 2009 12:04:59 +0000
(12:04 +0000)
Silences MSVC.
src/mesa/main/get.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/get.c
b/src/mesa/main/get.c
index f72aa6a2882cfe4f66fcc72e274cd688c66bb2d5..8122c9f88f9aea251008992dc04732f8463c3067 100644
(file)
--- 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);