diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-02 02:59:42 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-02 03:40:30 +0200 |
commit | 0f2ac928f291101bd74aac661cff7d14dfa8c984 (patch) | |
tree | 39d1ba26d25bd06874b58990c5deb4d1f4ed252d /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #885 from greggameplayer/R32-Float (diff) | |
download | yuzu-0f2ac928f291101bd74aac661cff7d14dfa8c984.tar yuzu-0f2ac928f291101bd74aac661cff7d14dfa8c984.tar.gz yuzu-0f2ac928f291101bd74aac661cff7d14dfa8c984.tar.bz2 yuzu-0f2ac928f291101bd74aac661cff7d14dfa8c984.tar.lz yuzu-0f2ac928f291101bd74aac661cff7d14dfa8c984.tar.xz yuzu-0f2ac928f291101bd74aac661cff7d14dfa8c984.tar.zst yuzu-0f2ac928f291101bd74aac661cff7d14dfa8c984.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index a1c47bae9..6555db5bb 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -14,7 +14,6 @@ #include "common/logging/log.h" #include "common/math_util.h" #include "common/microprofile.h" -#include "common/scope_exit.h" #include "core/core.h" #include "core/frontend/emu_window.h" #include "core/hle/kernel/process.h" @@ -37,7 +36,7 @@ MICROPROFILE_DEFINE(OpenGL_Drawing, "OpenGL", "Drawing", MP_RGB(128, 128, 192)); MICROPROFILE_DEFINE(OpenGL_Blits, "OpenGL", "Blits", MP_RGB(100, 100, 255)); MICROPROFILE_DEFINE(OpenGL_CacheManagement, "OpenGL", "Cache Mgmt", MP_RGB(100, 255, 100)); -RasterizerOpenGL::RasterizerOpenGL() { +RasterizerOpenGL::RasterizerOpenGL(EmuWindow& window) : emu_window{window} { // Create sampler objects for (size_t i = 0; i < texture_samplers.size(); ++i) { texture_samplers[i].Create(); @@ -395,7 +394,7 @@ void RasterizerOpenGL::Clear() { if (clear_mask == 0) return; - ScopeAcquireGLContext acquire_context; + ScopeAcquireGLContext acquire_context{emu_window}; auto [dirty_color_surface, dirty_depth_surface] = ConfigureFramebuffers(use_color_fb, use_depth_fb); @@ -425,7 +424,7 @@ void RasterizerOpenGL::DrawArrays() { MICROPROFILE_SCOPE(OpenGL_Drawing); const auto& regs = Core::System::GetInstance().GPU().Maxwell3D().regs; - ScopeAcquireGLContext acquire_context; + ScopeAcquireGLContext acquire_context{emu_window}; auto [dirty_color_surface, dirty_depth_surface] = ConfigureFramebuffers(true, regs.zeta.Address() != 0 && regs.zeta_enable != 0); |