summaryrefslogtreecommitdiffstats
path: root/video/out/gl_x11egl.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-19 00:58:56 +0100
committerwm4 <wm4@nowhere>2014-12-19 01:21:18 +0100
commitfe35130ba9079c09c74a5f5334584f1ccca15e52 (patch)
tree8e03910ea175b91aa46d12e97ef211b684f1b62a /video/out/gl_x11egl.c
parentde3e26bc846eee938248c9be3a688091f0eab49c (diff)
downloadmpv-fe35130ba9079c09c74a5f5334584f1ccca15e52.tar.bz2
mpv-fe35130ba9079c09c74a5f5334584f1ccca15e52.tar.xz
vo_opengl: mess with PixelStorei state management
This is needed for GLES 2 support. GLES 2 doesn't support GL_UNPACK_ROW_LENGTH, and we shouldn't even use this constant, since a GLES implementation could raise an error. So set it only if neccessary, and leave it in the default state otherwise. This also smuggles in a ES 2 fallback for glUploadTex(), and querying an extension relevant for ES 2. For the alignment state (GL_[UN]PACK_ALIGNMENT) do the same for symmetry. All 4 states (alignment/rows x pack/unpack) are now assumed to be in their initial states by default. Also redo the PixelStorei handling in the function table. I could rebase this, but look at the commit time.
Diffstat (limited to 'video/out/gl_x11egl.c')
0 files changed, 0 insertions, 0 deletions