mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
Merge pull request #1664 from FreddyFunk/cast2
gl_rasterizer: Fix compiler warnings
This commit is contained in:
commit
a264fac943
1 changed files with 2 additions and 2 deletions
|
@ -919,8 +919,8 @@ void RasterizerOpenGL::SyncViewport() {
|
||||||
auto& viewport = state.viewports[i];
|
auto& viewport = state.viewports[i];
|
||||||
viewport.x = viewport_rect.left;
|
viewport.x = viewport_rect.left;
|
||||||
viewport.y = viewport_rect.bottom;
|
viewport.y = viewport_rect.bottom;
|
||||||
viewport.width = static_cast<GLsizei>(viewport_rect.GetWidth());
|
viewport.width = static_cast<GLfloat>(viewport_rect.GetWidth());
|
||||||
viewport.height = static_cast<GLsizei>(viewport_rect.GetHeight());
|
viewport.height = static_cast<GLfloat>(viewport_rect.GetHeight());
|
||||||
viewport.depth_range_far = regs.viewport[i].depth_range_far;
|
viewport.depth_range_far = regs.viewport[i].depth_range_far;
|
||||||
viewport.depth_range_near = regs.viewport[i].depth_range_near;
|
viewport.depth_range_near = regs.viewport[i].depth_range_near;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue