From cc72a4e8c3889edf0c3880f166e3417be604ec19 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 23 May 2016 17:31:07 +0200 Subject: vo_opengl: support framebuffer invalidation Not sure how much can be gained with this, as we can't use it properly yet. For now, this is used only before rendering, which probably does overwhelmingly nothing. In the future, this should be used after temporary passes, which could possibly reduce memory usage and even memory bandwidth usage, depending on the drivers. --- video/out/opengl/common.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'video/out/opengl/common.c') diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c index ed3acede1c..16a5018dfd 100644 --- a/video/out/opengl/common.c +++ b/video/out/opengl/common.c @@ -269,6 +269,14 @@ static const struct gl_functions gl_functions[] = { {0} }, }, + { + .ver_core = 430, + .ver_es_core = 300, + .functions = (const struct gl_function[]) { + DEF_FN(InvalidateFramebuffer), + {0} + }, + }, // Swap control, always an OS specific extension // The OSX code loads this manually. { -- cgit v1.2.3