From f5e48f023524630d0334b1fbc2f2dc44bbc2819b Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 17 Jan 2015 17:28:47 +0100 Subject: vo_opengl: clean up ewa_lanczos code This fixes compatibility with GLES 2.0 and makes the code a bit neater in general. It also properly forces indirect scaling for subsampled video regardless of the lscale setting. --- video/out/gl_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video/out/gl_common.c') diff --git a/video/out/gl_common.c b/video/out/gl_common.c index 8bb570684a..70fb42b973 100644 --- a/video/out/gl_common.c +++ b/video/out/gl_common.c @@ -96,6 +96,7 @@ static const struct feature features[] = { {MPGL_CAP_FLOAT_TEX, "Float textures"}, {MPGL_CAP_TEX_RG, "RG textures"}, {MPGL_CAP_1ST_CLASS_ARRAYS, "1st class shader arrays"}, + {MPGL_CAP_1D_TEX, "1D textures"}, {MPGL_CAP_3D_TEX, "3D textures"}, {MPGL_CAP_DEBUG, "debugging extensions"}, {MPGL_CAP_SW, "suspected software renderer"}, @@ -207,7 +208,7 @@ static const struct gl_functions gl_functions[] = { // GL 2.1+ desktop only (and GLSL 120 shaders) { .ver_core = 210, - .provides = MPGL_CAP_ROW_LENGTH | MPGL_CAP_3D_TEX | + .provides = MPGL_CAP_ROW_LENGTH | MPGL_CAP_1D_TEX | MPGL_CAP_3D_TEX | MPGL_CAP_1ST_CLASS_ARRAYS, .functions = (const struct gl_function[]) { DEF_FN(DrawBuffer), -- cgit v1.2.3