summaryrefslogtreecommitdiffstats
path: root/video/mp_image_pool.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-12 19:47:26 +0200
committerwm4 <wm4@nowhere>2016-09-12 20:05:43 +0200
commite8cdc22245835cb17c82a9dc1525ffa793e34541 (patch)
treeb797253c3dfac14b2df2536ed5c8e2c9e578dea8 /video/mp_image_pool.c
parentb261e1e782cfa12b70b4601b136e07df16bdd651 (diff)
downloadmpv-e8cdc22245835cb17c82a9dc1525ffa793e34541.tar.bz2
mpv-e8cdc22245835cb17c82a9dc1525ffa793e34541.tar.xz
vo_opengl: better behavior in GL error corner cases
If the shader fails to compile, and assertion could trigger in gl_sc_gen_shader_and_reset() due to the code trying to recreate the shader every time, and re-appending the uniforms every time. Just reset the uniform array to fix this. Some disturbed GL drivers might not return anything for glGetShaderiv() if the GL state got "lost", so initialize variables just for additional robustness.
Diffstat (limited to 'video/mp_image_pool.c')
0 files changed, 0 insertions, 0 deletions