From 9d16837c99c91e786e517b2520afa79bcdc433b3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 27 Apr 2016 19:14:10 +0200 Subject: vo_opengl: support GL_EXT_texture_norm16 on GLES This gives us 16 bit fixed-point integer texture formats, including ability to sample from them with linear filtering, and using them as FBO attachments. The integer texture format path is still there for the sake of ANGLE, which does not support GL_EXT_texture_norm16 yet. The change to pass_dither() is needed, because the code path using GL_R16 for the dither texture relies on glTexImage2D being able to convert from GL_FLOAT to GL_R16. GLES does not allow this. This could be trivially fixed by doing the conversion ourselves, but I'm too lazy to do this now. --- DOCS/man/vo.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'DOCS/man') diff --git a/DOCS/man/vo.rst b/DOCS/man/vo.rst index 18e3f4ae64..bf3fb2e8fd 100644 --- a/DOCS/man/vo.rst +++ b/DOCS/man/vo.rst @@ -838,7 +838,8 @@ Available video output drivers are: ``fmt`` can be one of: rgb, rgba, rgb8, rgb10, rgb10_a2, rgb16, rgb16f, rgb32f, rgba12, rgba16, rgba16f, rgba32f. Default: ``auto``, which maps to rgba16 on desktop GL, and rgba16f or - rgb10_a2 on GLES (e.g. ANGLE). + rgb10_a2 on GLES (e.g. ANGLE), unless GL_EXT_texture_norm16 is + available. ``gamma=<0.1..2.0>`` Set a gamma value (default: 1.0). If gamma is adjusted in other ways -- cgit v1.2.3