diff options
author | bunnei <bunneidev@gmail.com> | 2019-07-21 06:59:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-21 06:59:52 +0200 |
commit | 27e10e0442dfd347387c6eaf148b27f5cc38bcaf (patch) | |
tree | c078fc3f0e62e55fc92a0c8b582666deece0a968 /src/video_core/renderer_opengl/gl_texture_cache.cpp | |
parent | Update README.md (diff) | |
parent | Maxwell3D: Reorganize and address feedback (diff) | |
download | yuzu-27e10e0442dfd347387c6eaf148b27f5cc38bcaf.tar yuzu-27e10e0442dfd347387c6eaf148b27f5cc38bcaf.tar.gz yuzu-27e10e0442dfd347387c6eaf148b27f5cc38bcaf.tar.bz2 yuzu-27e10e0442dfd347387c6eaf148b27f5cc38bcaf.tar.lz yuzu-27e10e0442dfd347387c6eaf148b27f5cc38bcaf.tar.xz yuzu-27e10e0442dfd347387c6eaf148b27f5cc38bcaf.tar.zst yuzu-27e10e0442dfd347387c6eaf148b27f5cc38bcaf.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_texture_cache.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.cpp b/src/video_core/renderer_opengl/gl_texture_cache.cpp index b1f6bc7c2..8fcd39a69 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.cpp +++ b/src/video_core/renderer_opengl/gl_texture_cache.cpp @@ -485,11 +485,15 @@ void TextureCacheOpenGL::ImageBlit(View& src_view, View& dst_view, const auto& dst_params{dst_view->GetSurfaceParams()}; OpenGLState prev_state{OpenGLState::GetCurState()}; - SCOPE_EXIT({ prev_state.Apply(); }); + SCOPE_EXIT({ + prev_state.AllDirty(); + prev_state.Apply(); + }); OpenGLState state; state.draw.read_framebuffer = src_framebuffer.handle; state.draw.draw_framebuffer = dst_framebuffer.handle; + state.AllDirty(); state.Apply(); u32 buffers{}; |