summaryrefslogtreecommitdiffstats
path: root/o3d/core/cross/gl/renderer_gl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/core/cross/gl/renderer_gl.cc')
-rw-r--r--o3d/core/cross/gl/renderer_gl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/o3d/core/cross/gl/renderer_gl.cc b/o3d/core/cross/gl/renderer_gl.cc
index 9f0955c..02a6942 100644
--- a/o3d/core/cross/gl/renderer_gl.cc
+++ b/o3d/core/cross/gl/renderer_gl.cc
@@ -1190,7 +1190,7 @@ void RendererGL::SetViewportInPixels(int left,
int vieport_top =
RenderSurfaceActive() ? top : display_height() - top - height;
::glViewport(left, vieport_top, width, height);
- UpdateHelperConstant(width, height);
+ UpdateHelperConstant(static_cast<float>(width), static_cast<float>(height));
// If it's the full client area turn off scissor test for speed.
if (left == 0 &&