summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-02 20:11:20 +0100
committerwm4 <wm4@nowhere>2014-12-02 20:36:55 +0100
commitef1c7563c530bebf01493d494b960da4a06fa242 (patch)
tree47fbe4cc06912205d679ddbd6e483ff7b7769aae /player
parent33a6b8df46f514a450d34dd74e20f4124426fe13 (diff)
downloadmpv-ef1c7563c530bebf01493d494b960da4a06fa242.tar.bz2
mpv-ef1c7563c530bebf01493d494b960da4a06fa242.tar.xz
vo_opengl: minor changes
Always set the viewport on entry. The way the viewport is tracked is a bit complicated in my opinion, and in fact it doesn't even reduce the number of GL calls. Setting it on entry is actually redundant if video covers the screen fully, because the handle_pass() unconditionally sets it anyway, but avoiding it would complicate the cases gl->Clear() is actually needed. Add a fbo argument to gl_video_render_frame(). This allows you to render into a FBO rather than the default framebuffer. It will be useful for providing an API to render on an external GL context. (If that will actually be added.)
Diffstat (limited to 'player')
0 files changed, 0 insertions, 0 deletions