File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -610,7 +610,7 @@ void GPU_HW_D3D11::UpdateDisplay()
610
610
m_context->OMSetDepthStencilState (m_depth_disabled_state.Get (), 0 );
611
611
m_context->PSSetShaderResources (0 , 1 , m_vram_texture.GetD3DSRVArray ());
612
612
613
- const u32 reinterpret_field_offset = GetInterlacedDisplayField ();
613
+ const u32 reinterpret_field_offset = (interlaced != InterlacedRenderMode::None) ? GetInterlacedDisplayField () : 0 ;
614
614
const u32 reinterpret_start_x = m_crtc_state.regs .X * m_resolution_scale;
615
615
const u32 reinterpret_crop_left = (m_crtc_state.display_vram_left - m_crtc_state.regs .X ) * m_resolution_scale;
616
616
const u32 uniforms[4 ] = {reinterpret_start_x, scaled_vram_offset_y + reinterpret_field_offset,
Original file line number Diff line number Diff line change @@ -613,7 +613,7 @@ void GPU_HW_OpenGL::UpdateDisplay()
613
613
m_vram_texture.Bind ();
614
614
615
615
const u8 height_div2 = BoolToUInt8 (interlaced == GPU_HW::InterlacedRenderMode::SeparateFields);
616
- const u32 reinterpret_field_offset = GetInterlacedDisplayField ();
616
+ const u32 reinterpret_field_offset = (interlaced != InterlacedRenderMode::None) ? GetInterlacedDisplayField () : 0 ;
617
617
const u32 scaled_flipped_vram_offset_y = m_vram_texture.GetHeight () - scaled_vram_offset_y -
618
618
reinterpret_field_offset - (scaled_display_height >> height_div2);
619
619
const u32 reinterpret_start_x = m_crtc_state.regs .X * m_resolution_scale;
You can’t perform that action at this time.
0 commit comments