diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-07-07 16:42:26 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-07-09 22:20:36 +0200 |
commit | cf38faee9ba6223721223c0a16b2ece2383bfc9a (patch) | |
tree | df5ee99ced794ead584ad4a8b6f498e76ebca03e /src/video_core/renderer_opengl | |
parent | Buffer Cache: Eliminate the AC Hack as the base game is fixed in Hades. (diff) | |
download | yuzu-cf38faee9ba6223721223c0a16b2ece2383bfc9a.tar yuzu-cf38faee9ba6223721223c0a16b2ece2383bfc9a.tar.gz yuzu-cf38faee9ba6223721223c0a16b2ece2383bfc9a.tar.bz2 yuzu-cf38faee9ba6223721223c0a16b2ece2383bfc9a.tar.lz yuzu-cf38faee9ba6223721223c0a16b2ece2383bfc9a.tar.xz yuzu-cf38faee9ba6223721223c0a16b2ece2383bfc9a.tar.zst yuzu-cf38faee9ba6223721223c0a16b2ece2383bfc9a.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 64869abf9..514c2f47d 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -657,6 +657,10 @@ void RasterizerOpenGL::FlushAndInvalidateRegion(VAddr addr, u64 size) { void RasterizerOpenGL::WaitForIdle() { glMemoryBarrier(GL_ALL_BARRIER_BITS); + if (!gpu.IsAsync()) { + return; + } + fence_manager.SignalOrdering(); } void RasterizerOpenGL::FragmentBarrier() { |