diff options
author | wm4 <wm4@nowhere> | 2016-05-23 17:31:07 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-05-23 21:27:18 +0200 |
commit | cc72a4e8c3889edf0c3880f166e3417be604ec19 (patch) | |
tree | ac07bc99676d99cfd95ea06e83a4e9498072b3a7 /video/out/opengl/utils.h | |
parent | cc4a0571fa63420aa06f648dcc2c529b6da62672 (diff) | |
download | mpv-cc72a4e8c3889edf0c3880f166e3417be604ec19.tar.bz2 mpv-cc72a4e8c3889edf0c3880f166e3417be604ec19.tar.xz |
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/utils.h')
-rw-r--r-- | video/out/opengl/utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/utils.h b/video/out/opengl/utils.h index c7a72969f6..569ec0f23c 100644 --- a/video/out/opengl/utils.h +++ b/video/out/opengl/utils.h @@ -84,6 +84,7 @@ bool fbotex_change(struct fbotex *fbo, GL *gl, struct mp_log *log, int w, int h, #define FBOTEX_FUZZY_H 2 #define FBOTEX_FUZZY (FBOTEX_FUZZY_W | FBOTEX_FUZZY_H) void fbotex_set_filter(struct fbotex *fbo, GLenum gl_filter); +void fbotex_invalidate(struct fbotex *fbo); // A 3x2 matrix, with the translation part separate. struct gl_transform { |