summaryrefslogtreecommitdiffstats
path: root/video/out/gl_common.c
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2015-01-17 17:28:47 +0100
committerNiklas Haas <git@nand.wakku.to>2015-01-22 19:29:23 +0100
commitf5e48f023524630d0334b1fbc2f2dc44bbc2819b (patch)
treef282841538e9ba421152c7a5b3750bbb730ebf4b /video/out/gl_common.c
parent571fe8f729827c628a2fa25c0b7b468a1a4559ae (diff)
downloadmpv-f5e48f023524630d0334b1fbc2f2dc44bbc2819b.tar.bz2
mpv-f5e48f023524630d0334b1fbc2f2dc44bbc2819b.tar.xz
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.
Diffstat (limited to 'video/out/gl_common.c')
-rw-r--r--video/out/gl_common.c3
1 files changed, 2 insertions, 1 deletions
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),