summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-07-16 20:18:48 -0400
committerLioncash <mathew1800@gmail.com>2019-07-16 20:54:34 -0400
commit2b9389202e0d1c8451aff176233cf211feef59dd (patch)
treec4ab726caa7d4f7470ccf11a120117dc1154b650 /Source/Core/VideoCommon/RenderBase.cpp
parent9dd8f82e78648a34bf3246dea6758215b7224aff (diff)
VideoCommon: Remove unused MathUtil.h include from VideoCommon.h
This header doesn't actually make use of MathUtil.h within itself, so this can be removed. Many other source files used VideoCommon.h as an indirect include to include MathUtil.h, so these includes can also be adjusted. While we're at it, we can also migrate valid inclusions of VideoCommon.h into cpp files where it can feasibly be done to minimize propagating it via other headers.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
-rw-r--r--Source/Core/VideoCommon/RenderBase.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp
index 795a96e40d..40b6f9d51e 100644
--- a/Source/Core/VideoCommon/RenderBase.cpp
+++ b/Source/Core/VideoCommon/RenderBase.cpp
@@ -22,7 +22,7 @@
#include <string>
#include <tuple>
-#include "imgui.h"
+#include <imgui.h>
#include "Common/Assert.h"
#include "Common/CommonTypes.h"
@@ -74,6 +74,7 @@
#include "VideoCommon/VertexManagerBase.h"
#include "VideoCommon/VertexShaderManager.h"
#include "VideoCommon/VideoBackendBase.h"
+#include "VideoCommon/VideoCommon.h"
#include "VideoCommon/VideoConfig.h"
#include "VideoCommon/XFMemory.h"
@@ -87,7 +88,9 @@ static float AspectToWidescreen(float aspect)
Renderer::Renderer(int backbuffer_width, int backbuffer_height, float backbuffer_scale,
AbstractTextureFormat backbuffer_format)
: m_backbuffer_width(backbuffer_width), m_backbuffer_height(backbuffer_height),
- m_backbuffer_scale(backbuffer_scale), m_backbuffer_format(backbuffer_format)
+ m_backbuffer_scale(backbuffer_scale),
+ m_backbuffer_format(backbuffer_format), m_last_xfb_width{MAX_XFB_WIDTH}, m_last_xfb_height{
+ MAX_XFB_HEIGHT}
{
UpdateActiveConfig();
UpdateDrawRectangle();