Skip to content
Snippets Groups Projects
Unverified Commit a264fac9 authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #1664 from FreddyFunk/cast2

gl_rasterizer: Fix compiler warnings
parents eaee73f9 1d36aec2
No related branches found
No related tags found
No related merge requests found
......@@ -919,8 +919,8 @@ void RasterizerOpenGL::SyncViewport() {
auto& viewport = state.viewports[i];
viewport.x = viewport_rect.left;
viewport.y = viewport_rect.bottom;
viewport.width = static_cast<GLsizei>(viewport_rect.GetWidth());
viewport.height = static_cast<GLsizei>(viewport_rect.GetHeight());
viewport.width = static_cast<GLfloat>(viewport_rect.GetWidth());
viewport.height = static_cast<GLfloat>(viewport_rect.GetHeight());
viewport.depth_range_far = regs.viewport[i].depth_range_far;
viewport.depth_range_near = regs.viewport[i].depth_range_near;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment