summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/utils.h
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2016-05-12 11:27:00 +0200
committerNiklas Haas <git@nand.wakku.to>2016-05-15 20:42:02 +0200
commitdfc7b59909588985ee1be19f313f8bfb858ab8b0 (patch)
tree3f563890139c210f573312727db61d89a8e43e14 /video/out/opengl/utils.h
parent034faaa9d818bd8c1c52c879e383b8e7350d3df5 (diff)
downloadmpv-dfc7b59909588985ee1be19f313f8bfb858ab8b0.tar.bz2
mpv-dfc7b59909588985ee1be19f313f8bfb858ab8b0.tar.xz
vo_opengl: make the screen blue on shader errors
This helps visually signify that somthing went wrong, and prevents confusing shader compilation errors with other types of bugs.
Diffstat (limited to 'video/out/opengl/utils.h')
-rw-r--r--video/out/opengl/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/opengl/utils.h b/video/out/opengl/utils.h
index cec5a4b8e4..c7a72969f6 100644
--- a/video/out/opengl/utils.h
+++ b/video/out/opengl/utils.h
@@ -148,6 +148,8 @@ struct gl_shader_cache;
struct gl_shader_cache *gl_sc_create(GL *gl, struct mp_log *log);
void gl_sc_destroy(struct gl_shader_cache *sc);
+bool gl_sc_error_state(struct gl_shader_cache *sc);
+void gl_sc_reset_error(struct gl_shader_cache *sc);
void gl_sc_add(struct gl_shader_cache *sc, const char *text);
void gl_sc_addf(struct gl_shader_cache *sc, const char *textf, ...);
void gl_sc_hadd(struct gl_shader_cache *sc, const char *text);