summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_rasterizer.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-04-11 06:50:58 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-04-11 06:51:02 +0200
commit94b0e2e5dae4e0bd0021ac2d8fe1ff904a93ee69 (patch)
tree4b5c1a289b4a871dcaec3863cf951388f9637189 /src/video_core/renderer_opengl/gl_rasterizer.cpp
parentMerge pull request #3594 from ReinUsesLisp/vk-instance (diff)
downloadyuzu-94b0e2e5dae4e0bd0021ac2d8fe1ff904a93ee69.tar
yuzu-94b0e2e5dae4e0bd0021ac2d8fe1ff904a93ee69.tar.gz
yuzu-94b0e2e5dae4e0bd0021ac2d8fe1ff904a93ee69.tar.bz2
yuzu-94b0e2e5dae4e0bd0021ac2d8fe1ff904a93ee69.tar.lz
yuzu-94b0e2e5dae4e0bd0021ac2d8fe1ff904a93ee69.tar.xz
yuzu-94b0e2e5dae4e0bd0021ac2d8fe1ff904a93ee69.tar.zst
yuzu-94b0e2e5dae4e0bd0021ac2d8fe1ff904a93ee69.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 368f399df..c6ff4e27f 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -345,7 +345,7 @@ void RasterizerOpenGL::ConfigureFramebuffers() {
texture_cache.GuardRenderTargets(true);
- View depth_surface = texture_cache.GetDepthBufferSurface(true);
+ View depth_surface = texture_cache.GetDepthBufferSurface();
const auto& regs = gpu.regs;
UNIMPLEMENTED_IF(regs.rt_separate_frag_data == 0);
@@ -354,7 +354,7 @@ void RasterizerOpenGL::ConfigureFramebuffers() {
FramebufferCacheKey key;
const auto colors_count = static_cast<std::size_t>(regs.rt_control.count);
for (std::size_t index = 0; index < colors_count; ++index) {
- View color_surface{texture_cache.GetColorBufferSurface(index, true)};
+ View color_surface{texture_cache.GetColorBufferSurface(index)};
if (!color_surface) {
continue;
}
@@ -387,12 +387,12 @@ void RasterizerOpenGL::ConfigureClearFramebuffer(bool using_color_fb, bool using
View color_surface;
if (using_color_fb) {
const std::size_t index = regs.clear_buffers.RT;
- color_surface = texture_cache.GetColorBufferSurface(index, true);
+ color_surface = texture_cache.GetColorBufferSurface(index);
texture_cache.MarkColorBufferInUse(index);
}
View depth_surface;
if (using_depth_fb || using_stencil_fb) {
- depth_surface = texture_cache.GetDepthBufferSurface(true);
+ depth_surface = texture_cache.GetDepthBufferSurface();
texture_cache.MarkDepthBufferInUse();
}
texture_cache.GuardRenderTargets(false);