summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-09 22:28:16 +0100
committerwm4 <wm4@nowhere>2014-12-09 22:28:16 +0100
commit56882eaee4211ba158e82ecbd3da6c760dcc945e (patch)
tree274642c2ba5bd92b3952c543f3a98dca4203b9bb /video/out/gl_video.c
parent5f0a2b5908523ff3e792cab2f59901cb761332df (diff)
downloadmpv-56882eaee4211ba158e82ecbd3da6c760dcc945e.tar.bz2
mpv-56882eaee4211ba158e82ecbd3da6c760dcc945e.tar.xz
vo_opengl: don't crash if framebuffers are not available
In theory, vo_opengl supports operation without framebuffers. But this has been broken for a while now (commit cc00b3ff is a contender). It crashed because it unconditionally called gl->BindFramebuffer() (which is NULL if framebuffers are missing). Since this function is actually only called to set the default framebuffer, the simplest way to deal with this is to provide a dummy function, insteas of uglifying the code with additional if branches.
Diffstat (limited to 'video/out/gl_video.c')
0 files changed, 0 insertions, 0 deletions