aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/out/opengl/formats.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2016-05-23 19:29:08 +0200
committerGravatar wm4 <wm4@nowhere>2016-05-23 21:27:18 +0200
commit049e3ccb6551ad37beb091c72a9ef70920cdea80 (patch)
treee2362c174072883bd5803fd2f45fee278ad56556 /video/out/opengl/formats.c
parent80d702dce8469928012b9a709805a76274cd0256 (diff)
vo_opengl: make ES float texture format checks stricter
Some of these checks became pointless after dropping ES 2.0 support for extended filtering. GL_EXT_texture_rg is part of core in ES 3.0, and we already check for this version, so testing for the extension is redundant. GL_OES_texture_half_float_linear is also always available, at least as far as our needs go. The functionality we need from GL_EXT_color_buffer_half_float is always available in ES 3.2, and we explicitly check for ES 3.2, so reject this extension if the ES version is new enough.
Diffstat (limited to 'video/out/opengl/formats.c')
-rw-r--r--video/out/opengl/formats.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/video/out/opengl/formats.c b/video/out/opengl/formats.c
index 3ca6fe7b8e..2e3dad0cbc 100644
--- a/video/out/opengl/formats.c
+++ b/video/out/opengl/formats.c
@@ -116,9 +116,7 @@ int gl_format_feature_flags(GL *gl)
| (gl->es >= 320 ? F_ES32 : 0)
| (gl->mpgl_caps & MPGL_CAP_EXT16 ? F_EXT16 : 0)
| ((gl->es >= 300 &&
- (gl->mpgl_caps & MPGL_CAP_TEX_RG) &&
- (gl->mpgl_caps & MPGL_CAP_EXT_CR_HFLOAT) &&
- (gl->mpgl_caps & MPGL_CAP_OES_HFLOAT_LIN)) ? F_EXTF16 : 0)
+ (gl->mpgl_caps & MPGL_CAP_EXT_CR_HFLOAT)) ? F_EXTF16 : 0)
| ((gl->version == 210 &&
(gl->mpgl_caps & MPGL_CAP_ARB_FLOAT) &&
(gl->mpgl_caps & MPGL_CAP_TEX_RG) &&