2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #1664 from FreddyFunk/cast2

gl_rasterizer: Fix compiler warnings
This commit is contained in:
bunnei 2018-11-11 12:18:29 -08:00 committed by GitHub
commit a264fac943
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}