summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_rasterizer_cache.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-08-20 22:18:51 +0200
committerSubv <subv2112@gmail.com>2018-08-20 22:20:35 +0200
commit3fe77be392798408823ab80e84db265351fc14ab (patch)
treeba4a53686f58c430fab3abe7294ce57e18e699b8 /src/video_core/renderer_opengl/gl_rasterizer_cache.h
parentMerge pull request #1104 from Subv/instanced_arrays (diff)
downloadyuzu-3fe77be392798408823ab80e84db265351fc14ab.tar
yuzu-3fe77be392798408823ab80e84db265351fc14ab.tar.gz
yuzu-3fe77be392798408823ab80e84db265351fc14ab.tar.bz2
yuzu-3fe77be392798408823ab80e84db265351fc14ab.tar.lz
yuzu-3fe77be392798408823ab80e84db265351fc14ab.tar.xz
yuzu-3fe77be392798408823ab80e84db265351fc14ab.tar.zst
yuzu-3fe77be392798408823ab80e84db265351fc14ab.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer_cache.h')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
index fc8b44219..907e7d606 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
@@ -722,7 +722,8 @@ public:
Surface GetTextureSurface(const Tegra::Texture::FullTextureInfo& config);
/// Get the color and depth surfaces based on the framebuffer configuration
- SurfaceSurfaceRect_Tuple GetFramebufferSurfaces(bool using_color_fb, bool using_depth_fb);
+ SurfaceSurfaceRect_Tuple GetFramebufferSurfaces(bool using_color_fb, bool using_depth_fb,
+ bool preserve_contents);
/// Flushes the surface to Switch memory
void FlushSurface(const Surface& surface);
@@ -738,7 +739,7 @@ public:
private:
void LoadSurface(const Surface& surface);
- Surface GetSurface(const SurfaceParams& params);
+ Surface GetSurface(const SurfaceParams& params, bool preserve_contents = true);
/// Recreates a surface with new parameters
Surface RecreateSurface(const Surface& surface, const SurfaceParams& new_params);