summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-13 04:32:28 +0200
committerbunnei <bunneidev@gmail.com>2018-10-16 17:31:01 +0200
commitcf7b46c101ec56b24968c041e62c22dbeaa8e468 (patch)
treeaf6fd02b6f20783f4c31ea9a5584676b1f9a8cd8 /src/video_core
parentgl_rasterizer: Implement flushing. (diff)
downloadyuzu-cf7b46c101ec56b24968c041e62c22dbeaa8e468.tar
yuzu-cf7b46c101ec56b24968c041e62c22dbeaa8e468.tar.gz
yuzu-cf7b46c101ec56b24968c041e62c22dbeaa8e468.tar.bz2
yuzu-cf7b46c101ec56b24968c041e62c22dbeaa8e468.tar.lz
yuzu-cf7b46c101ec56b24968c041e62c22dbeaa8e468.tar.xz
yuzu-cf7b46c101ec56b24968c041e62c22dbeaa8e468.tar.zst
yuzu-cf7b46c101ec56b24968c041e62c22dbeaa8e468.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp4
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.h3
2 files changed, 0 insertions, 7 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
index 3eedb0d50..6abb89f36 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
@@ -1121,10 +1121,6 @@ void RasterizerCacheOpenGL::LoadSurface(const Surface& surface) {
surface->UploadGLTexture(read_framebuffer.handle, draw_framebuffer.handle);
}
-void RasterizerCacheOpenGL::FlushSurface(const Surface& surface) {
- surface->FlushGLBuffer();
-}
-
Surface RasterizerCacheOpenGL::GetSurface(const SurfaceParams& params, bool preserve_contents) {
if (params.addr == 0 || params.height * params.width == 0) {
return {};
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
index f6f7aad82..247b58297 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
@@ -867,9 +867,6 @@ public:
/// Get the color surface based on the framebuffer configuration and the specified render target
Surface GetColorBufferSurface(std::size_t index, bool preserve_contents);
- /// Flushes the surface to Switch memory
- void FlushSurface(const Surface& surface);
-
/// Tries to find a framebuffer using on the provided CPU address
Surface TryFindFramebufferSurface(VAddr addr) const;