diff options
| author | Subv <subv2112@gmail.com> | 2018-08-20 15:18:51 -0500 |
|---|---|---|
| committer | Subv <subv2112@gmail.com> | 2018-08-20 15:20:35 -0500 |
| commit | 3fe77be392798408823ab80e84db265351fc14ab (patch) | |
| tree | ba4a53686f58c430fab3abe7294ce57e18e699b8 /src/video_core/renderer_opengl/gl_rasterizer.h | |
| parent | 028d90eb79b75292d352cc8d4b96a2df74cd6b6e (diff) | |
Rasterizer: Don't attempt to copy over the old texture's data when doing a format reinterpretation if we're only going to clear the framebuffer.
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.h')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index 74307f626..4a7c5b923 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -87,7 +87,8 @@ private: /// Configures the color and depth framebuffer states and returns the dirty <Color, Depth> /// surfaces if writing was enabled. - std::pair<Surface, Surface> ConfigureFramebuffers(bool using_color_fb, bool using_depth_fb); + std::pair<Surface, Surface> ConfigureFramebuffers(bool using_color_fb, bool using_depth_fb, + bool preserve_contents); /// Binds the framebuffer color and depth surface void BindFramebufferSurfaces(const Surface& color_surface, const Surface& depth_surface, |
