From 6c2f87b1df999acd7628aa2a5f8089cf970689b5 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 24 Apr 2017 11:57:16 -0700 Subject: [PATCH] GPU: Consistently use useBufferedRendering_. --- GPU/Common/FramebufferCommon.cpp | 6 +++--- Windows/MainWindow.cpp | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/GPU/Common/FramebufferCommon.cpp b/GPU/Common/FramebufferCommon.cpp index 4295a9458a..a7b696782f 100644 --- a/GPU/Common/FramebufferCommon.cpp +++ b/GPU/Common/FramebufferCommon.cpp @@ -769,7 +769,7 @@ void FramebufferManagerCommon::DrawFramebufferToOutput(const u8 *srcPixels, GEBu // Should try to unify this path with the regular path somehow, but this simple solution works for most of the post shaders // (it always runs at output resolution so FXAA may look odd). float x, y, w, h; - int uvRotation = (g_Config.iRenderingMode != FB_NON_BUFFERED_MODE) ? g_Config.iInternalScreenRotation : ROTATION_LOCKED_HORIZONTAL; + int uvRotation = useBufferedRendering_ ? g_Config.iInternalScreenRotation : ROTATION_LOCKED_HORIZONTAL; CenterDisplayOutputRect(&x, &y, &w, &h, 480.0f, 272.0f, (float)pixelWidth_, (float)pixelHeight_, uvRotation); if (applyPostShader && useBufferedRendering_) { // Might've changed if the shader was just changed to Off. @@ -930,7 +930,7 @@ void FramebufferManagerCommon::CopyDisplayToOutput() { draw_->BindFramebufferAsTexture(vfb->fbo, 0, Draw::FB_COLOR_BIT, 0); - int uvRotation = (g_Config.iRenderingMode != FB_NON_BUFFERED_MODE) ? g_Config.iInternalScreenRotation : ROTATION_LOCKED_HORIZONTAL; + int uvRotation = useBufferedRendering_ ? g_Config.iInternalScreenRotation : ROTATION_LOCKED_HORIZONTAL; // Output coordinates float x, y, w, h; @@ -1044,7 +1044,7 @@ void FramebufferManagerCommon::CopyDisplayToOutput() { } void FramebufferManagerCommon::DecimateFBOs() { - if (g_Config.iRenderingMode != FB_NON_BUFFERED_MODE) { + if (useBufferedRendering_) { draw_->BindBackbufferAsRenderTarget(); } currentRenderVfb_ = 0; diff --git a/Windows/MainWindow.cpp b/Windows/MainWindow.cpp index 7a11b27015..30a30fe97b 100644 --- a/Windows/MainWindow.cpp +++ b/Windows/MainWindow.cpp @@ -224,8 +224,7 @@ namespace MainWindow if (g_Config.iTexScalingLevel == TEXSCALING_AUTO) setTexScalingMultiplier(0); - if (gpu) - gpu->Resized(); + NativeMessageReceived("gpu resized", ""); } void CorrectCursor() {