summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar bunnei2015-01-04 00:08:11 -0500
committerGravatar bunnei2015-01-07 18:06:00 -0500
commitf7a3f45f1e5e507c81e2ad1a1a33dbeb62e64a99 (patch)
tree29ce6589ebf3f504a38f679501b58f431ab9dace /src/core
parentMerge pull request #402 from chrisvj/master (diff)
downloadyuzu-f7a3f45f1e5e507c81e2ad1a1a33dbeb62e64a99.tar.gz
yuzu-f7a3f45f1e5e507c81e2ad1a1a33dbeb62e64a99.tar.xz
yuzu-f7a3f45f1e5e507c81e2ad1a1a33dbeb62e64a99.zip
GSP: Toggle active framebuffer each frame
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/gsp_gpu.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/hle/service/gsp_gpu.cpp b/src/core/hle/service/gsp_gpu.cpp
index 0127d4ee5..26a43217e 100644
--- a/src/core/hle/service/gsp_gpu.cpp
+++ b/src/core/hle/service/gsp_gpu.cpp
@@ -291,8 +291,11 @@ static void ExecuteCommand(const Command& command, u32 thread_id) {
291 // Update framebuffer information if requested 291 // Update framebuffer information if requested
292 for (int screen_id = 0; screen_id < 2; ++screen_id) { 292 for (int screen_id = 0; screen_id < 2; ++screen_id) {
293 FrameBufferUpdate* info = GetFrameBufferInfo(thread_id, screen_id); 293 FrameBufferUpdate* info = GetFrameBufferInfo(thread_id, screen_id);
294 if (info->is_dirty) 294
295 if (info->is_dirty) {
295 SetBufferSwap(screen_id, info->framebuffer_info[info->index]); 296 SetBufferSwap(screen_id, info->framebuffer_info[info->index]);
297 info->framebuffer_info->active_fb = info->framebuffer_info->active_fb ^ 1;
298 }
296 299
297 info->is_dirty = false; 300 info->is_dirty = false;
298 } 301 }