mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-04-25 22:09:45 -05:00
VideoCommon: move global variables out of BPFunctions
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "VideoCommon/AbstractGfx.h"
|
||||
#include "VideoCommon/BPFunctions.h"
|
||||
#include "VideoCommon/BPMemory.h"
|
||||
#include "VideoCommon/DriverDetails.h"
|
||||
#include "VideoCommon/Fifo.h"
|
||||
#include "VideoCommon/FramebufferManager.h"
|
||||
@@ -30,6 +31,7 @@
|
||||
#include "VideoCommon/ShaderGenCommon.h"
|
||||
#include "VideoCommon/TextureCacheBase.h"
|
||||
#include "VideoCommon/VertexManagerBase.h"
|
||||
#include "VideoCommon/XFMemory.h"
|
||||
|
||||
VideoConfig g_Config;
|
||||
VideoConfig g_ActiveConfig;
|
||||
@@ -383,7 +385,8 @@ void CheckForConfigChanges()
|
||||
// Viewport and scissor rect have to be reset since they will be scaled differently.
|
||||
if (changed_bits & CONFIG_CHANGE_BIT_TARGET_SIZE)
|
||||
{
|
||||
BPFunctions::SetScissorAndViewport();
|
||||
BPFunctions::SetScissorAndViewport(g_framebuffer_manager.get(), bpmem.scissorTL,
|
||||
bpmem.scissorBR, bpmem.scissorOffset, xfmem.viewport);
|
||||
}
|
||||
|
||||
// Notify all listeners
|
||||
|
||||
Reference in New Issue
Block a user