diff options
author | wm4 <wm4@nowhere> | 2014-12-19 00:58:56 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-19 01:21:18 +0100 |
commit | fe35130ba9079c09c74a5f5334584f1ccca15e52 (patch) | |
tree | 8e03910ea175b91aa46d12e97ef211b684f1b62a /misc/json.c | |
parent | de3e26bc846eee938248c9be3a688091f0eab49c (diff) | |
download | mpv-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 'misc/json.c')
0 files changed, 0 insertions, 0 deletions