diff --git a/Source/Core/VideoBackends/OGL/PostProcessing.h b/Source/Core/VideoBackends/OGL/PostProcessing.h index 706b113c22..1c8c8ecf52 100644 --- a/Source/Core/VideoBackends/OGL/PostProcessing.h +++ b/Source/Core/VideoBackends/OGL/PostProcessing.h @@ -23,8 +23,8 @@ public: ~OpenGLPostProcessing(); void BlitFromTexture(TargetRectangle src, TargetRectangle dst, int src_texture, int src_width, - int src_height, int layer) override; - void ApplyShader() override; + int src_height, int layer); + void ApplyShader(); private: bool m_initialized; diff --git a/Source/Core/VideoBackends/OGL/Render.cpp b/Source/Core/VideoBackends/OGL/Render.cpp index ec68c14f23..ce58be68cc 100644 --- a/Source/Core/VideoBackends/OGL/Render.cpp +++ b/Source/Core/VideoBackends/OGL/Render.cpp @@ -1176,6 +1176,7 @@ void Renderer::ClearScreen(const EFBRectangle& rc, bool colorEnable, bool alphaE void Renderer::BlitScreen(TargetRectangle src, TargetRectangle dst, GLuint src_texture, int src_width, int src_height) { + OpenGLPostProcessing* post_processor = static_cast(m_post_processor.get()); if (g_ActiveConfig.iStereoMode == STEREO_SBS || g_ActiveConfig.iStereoMode == STEREO_TAB) { TargetRectangle leftRc, rightRc; @@ -1186,12 +1187,12 @@ void Renderer::BlitScreen(TargetRectangle src, TargetRectangle dst, GLuint src_t else std::tie(leftRc, rightRc) = ConvertStereoRectangle(dst); - m_post_processor->BlitFromTexture(src, leftRc, src_texture, src_width, src_height, 0); - m_post_processor->BlitFromTexture(src, rightRc, src_texture, src_width, src_height, 1); + post_processor->BlitFromTexture(src, leftRc, src_texture, src_width, src_height, 0); + post_processor->BlitFromTexture(src, rightRc, src_texture, src_width, src_height, 1); } else { - m_post_processor->BlitFromTexture(src, dst, src_texture, src_width, src_height); + post_processor->BlitFromTexture(src, dst, src_texture, src_width, src_height, 0); } } diff --git a/Source/Core/VideoCommon/PostProcessing.h b/Source/Core/VideoCommon/PostProcessing.h index 74628c3e54..02ed1b5f7b 100644 --- a/Source/Core/VideoCommon/PostProcessing.h +++ b/Source/Core/VideoCommon/PostProcessing.h @@ -60,6 +60,7 @@ public: bool IsDirty() { return m_any_options_dirty; } void SetDirty(bool dirty) { m_any_options_dirty = dirty; } bool HasOptions() { return m_options.size() > 0; } + const ConfigMap& GetOptions() const { return m_options; } ConfigMap& GetOptions() { return m_options; } const ConfigurationOption& GetOption(const std::string& option) { return m_options[option]; } // For updating option's values @@ -83,11 +84,6 @@ public: virtual ~PostProcessingShaderImplementation(); PostProcessingShaderConfiguration* GetConfig() { return &m_config; } - // Should be implemented by the backends for backend specific code - virtual void BlitFromTexture(TargetRectangle src, TargetRectangle dst, int src_texture, - int src_width, int src_height, int layer = 0) = 0; - virtual void ApplyShader() = 0; - protected: // Timer for determining our time value Common::Timer m_timer;