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

gl_rasterizer: Silence unused variable warning

Makes use of src, so it's not considered unused.
This commit is contained in:
Lioncash 2019-05-04 02:00:16 -04:00
parent 1f72bb733f
commit 08b270676b
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -922,8 +922,8 @@ void RasterizerOpenGL::SyncViewport(OpenGLState& current_state) {
viewport.y = viewport_rect.bottom; viewport.y = viewport_rect.bottom;
viewport.width = viewport_rect.GetWidth(); viewport.width = viewport_rect.GetWidth();
viewport.height = viewport_rect.GetHeight(); viewport.height = viewport_rect.GetHeight();
viewport.depth_range_far = regs.viewports[i].depth_range_far; viewport.depth_range_far = src.depth_range_far;
viewport.depth_range_near = regs.viewports[i].depth_range_near; viewport.depth_range_near = src.depth_range_near;
} }
state.depth_clamp.far_plane = regs.view_volume_clip_control.depth_clamp_far != 0; state.depth_clamp.far_plane = regs.view_volume_clip_control.depth_clamp_far != 0;
state.depth_clamp.near_plane = regs.view_volume_clip_control.depth_clamp_near != 0; state.depth_clamp.near_plane = regs.view_volume_clip_control.depth_clamp_near != 0;