mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 21:06:00 +00:00
vo_opengl: check format on some printf-like calls
Fix 1 incorrect use.
This commit is contained in:
parent
64d56114ed
commit
3d0f86145c
@ -135,9 +135,11 @@ void gl_sc_destroy(struct gl_shader_cache *sc);
|
|||||||
bool gl_sc_error_state(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_reset_error(struct gl_shader_cache *sc);
|
||||||
void gl_sc_add(struct gl_shader_cache *sc, const char *text);
|
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_addf(struct gl_shader_cache *sc, const char *textf, ...)
|
||||||
|
PRINTF_ATTRIBUTE(2, 3);
|
||||||
void gl_sc_hadd(struct gl_shader_cache *sc, const char *text);
|
void gl_sc_hadd(struct gl_shader_cache *sc, const char *text);
|
||||||
void gl_sc_haddf(struct gl_shader_cache *sc, const char *textf, ...);
|
void gl_sc_haddf(struct gl_shader_cache *sc, const char *textf, ...)
|
||||||
|
PRINTF_ATTRIBUTE(2, 3);
|
||||||
void gl_sc_hadd_bstr(struct gl_shader_cache *sc, struct bstr text);
|
void gl_sc_hadd_bstr(struct gl_shader_cache *sc, struct bstr text);
|
||||||
void gl_sc_uniform_tex(struct gl_shader_cache *sc, char *name, GLenum target,
|
void gl_sc_uniform_tex(struct gl_shader_cache *sc, char *name, GLenum target,
|
||||||
GLuint texture);
|
GLuint texture);
|
||||||
|
@ -454,7 +454,7 @@ void pass_ootf(struct gl_shader_cache *sc, enum mp_csp_light light, float peak)
|
|||||||
if (light == MP_CSP_LIGHT_DISPLAY)
|
if (light == MP_CSP_LIGHT_DISPLAY)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
GLSLF("// apply ootf\n", sc);
|
GLSLF("// apply ootf\n");
|
||||||
GLSLF("color.rgb *= vec3(%f);\n", peak);
|
GLSLF("color.rgb *= vec3(%f);\n", peak);
|
||||||
|
|
||||||
switch (light)
|
switch (light)
|
||||||
|
Loading…
Reference in New Issue
Block a user