summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_atom_viewport.c
diff options
context:
space:
mode:
authorMichal Krol <michal@tungstengraphics.com>2008-07-15 11:26:38 +0200
committerMichal Krol <michal@tungstengraphics.com>2008-07-15 11:48:59 +0200
commit6c534b830c6f5427c391c5225c34561141c201ba (patch)
tree1302142c7904316f2c1bc5a46e7f23b49a55081d /src/mesa/state_tracker/st_atom_viewport.c
parent090e212c0c5e54156c3c33f7eecdfe01398a7222 (diff)
st: Silence compiler warnings on Windows.
Diffstat (limited to 'src/mesa/state_tracker/st_atom_viewport.c')
-rw-r--r--src/mesa/state_tracker/st_atom_viewport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_atom_viewport.c b/src/mesa/state_tracker/st_atom_viewport.c
index b105909e96..8b9f1abda4 100644
--- a/src/mesa/state_tracker/st_atom_viewport.c
+++ b/src/mesa/state_tracker/st_atom_viewport.c
@@ -62,9 +62,9 @@ update_viewport( struct st_context *st )
GLfloat x = (GLfloat)ctx->Viewport.X;
GLfloat y = (GLfloat)ctx->Viewport.Y;
GLfloat z = ctx->Viewport.Near;
- GLfloat half_width = (GLfloat)ctx->Viewport.Width / 2.0;
- GLfloat half_height = (GLfloat)ctx->Viewport.Height / 2.0;
- GLfloat half_depth = (GLfloat)(ctx->Viewport.Far - ctx->Viewport.Near) / 2.0;
+ GLfloat half_width = (GLfloat)ctx->Viewport.Width / 2.0f;
+ GLfloat half_height = (GLfloat)ctx->Viewport.Height / 2.0f;
+ GLfloat half_depth = (GLfloat)(ctx->Viewport.Far - ctx->Viewport.Near) / 2.0f;
st->state.viewport.scale[0] = half_width;
st->state.viewport.scale[1] = half_height * yScale;