aboutsummaryrefslogtreecommitdiffhomepage
path: root/options/parse_commandline.h
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2016-07-03 16:00:51 +0200
committerGravatar wm4 <wm4@nowhere>2016-07-03 16:34:32 +0200
commit823c353faaab569264f6d6d8c3d335bb0173b9e1 (patch)
tree68f5a6a63b4a2e96f16d2834b0c9c797895b2def /options/parse_commandline.h
parent06219c7f880225fdcd23885f1e9363821064012e (diff)
vo_opengl: move PBO upload handling to shared code
This introduces a gl_pbo_upload_tex() function, which works almost like our gl_upload_tex() glTexSubImage2D() wrapper, except it takes a struct which caches the PBO handles. It also takes the full texture size (to make allocating an ideal buffer size easier), and a parameter to disable PBOs (so that the caller doesn't have to duplicate the gl_upload_tex() call if PBOs are disabled or unavailable). This also removes warnings and fallbacks on PBO failure. We just silently try using PBOs on every frame, and if that fails at some point, revert to normal texture uploads. Probably doesn't matter.
Diffstat (limited to 'options/parse_commandline.h')
0 files changed, 0 insertions, 0 deletions