aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/out/opengl/common.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2016-05-23 17:31:07 +0200
committerGravatar wm4 <wm4@nowhere>2016-05-23 21:27:18 +0200
commitcc72a4e8c3889edf0c3880f166e3417be604ec19 (patch)
treeac07bc99676d99cfd95ea06e83a4e9498072b3a7 /video/out/opengl/common.c
parentcc4a0571fa63420aa06f648dcc2c529b6da62672 (diff)
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.
Diffstat (limited to 'video/out/opengl/common.c')
-rw-r--r--video/out/opengl/common.c8
1 files changed, 8 insertions, 0 deletions
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.
{