From 049e3ccb6551ad37beb091c72a9ef70920cdea80 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 23 May 2016 19:29:08 +0200 Subject: 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. --- video/out/opengl/formats.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'video/out/opengl/formats.h') diff --git a/video/out/opengl/formats.h b/video/out/opengl/formats.h index f62f96cff0..6ced4a7676 100644 --- a/video/out/opengl/formats.h +++ b/video/out/opengl/formats.h @@ -23,8 +23,7 @@ enum { F_ES3 = 1 << 3, // ES3.0 or later F_ES32 = 1 << 4, // ES3.2 or later F_EXT16 = 1 << 5, // ES with GL_EXT_texture_norm16 - F_EXTF16 = 1 << 6, // GL_OES_texture_half_float_linear + - // GL_EXT_color_buffer_half_float + F_EXTF16 = 1 << 6, // GL_EXT_color_buffer_half_float F_GL2F = 1 << 7, // GL2.1-only with texture_rg + texture_float + FBOs F_APPL = 1 << 8, // GL_APPLE_rgb_422 -- cgit v1.2.3