From 4a06a66501fcbb38a61d501fd1fbbc96177882a4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 26 Jan 2015 06:05:36 +0100 Subject: vo_opengl: drop sRGB framebuffer detection We've stopped using them some time ago (we're doing things manually instead). --- video/out/gl_common.c | 9 +-------- video/out/gl_common.h | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/video/out/gl_common.c b/video/out/gl_common.c index 70fb42b973..2bb824a9f1 100644 --- a/video/out/gl_common.c +++ b/video/out/gl_common.c @@ -92,7 +92,6 @@ static const struct feature features[] = { {MPGL_CAP_FB, "Framebuffers"}, {MPGL_CAP_VAO, "VAOs"}, {MPGL_CAP_SRGB_TEX, "sRGB textures"}, - {MPGL_CAP_SRGB_FB, "sRGB framebuffers"}, {MPGL_CAP_FLOAT_TEX, "Float textures"}, {MPGL_CAP_TEX_RG, "RG textures"}, {MPGL_CAP_1ST_CLASS_ARRAYS, "1st class shader arrays"}, @@ -225,7 +224,7 @@ static const struct gl_functions gl_functions[] = { { .ver_core = 300, .ver_es_core = 300, - .provides = MPGL_CAP_SRGB_TEX | MPGL_CAP_SRGB_FB | MPGL_CAP_3D_TEX | + .provides = MPGL_CAP_SRGB_TEX | MPGL_CAP_3D_TEX | MPGL_CAP_1ST_CLASS_ARRAYS, .functions = (const struct gl_function[]) { DEF_FN(GetStringi), @@ -292,12 +291,6 @@ static const struct gl_functions gl_functions[] = { .extension = "GL_EXT_texture_sRGB", .provides = MPGL_CAP_SRGB_TEX, }, - // sRGB framebuffers, extension in GL 2.x, core in GL 3.x core. - { - .ver_core = 300, - .extension = "GL_EXT_framebuffer_sRGB", - .provides = MPGL_CAP_SRGB_FB, - }, // Float textures, extension in GL 2.x, core in GL 3.x core. { .ver_core = 300, diff --git a/video/out/gl_common.h b/video/out/gl_common.h index dcb6a86ced..ab15eed694 100644 --- a/video/out/gl_common.h +++ b/video/out/gl_common.h @@ -67,7 +67,6 @@ enum { MPGL_CAP_FB = (1 << 5), MPGL_CAP_VAO = (1 << 6), MPGL_CAP_SRGB_TEX = (1 << 7), - MPGL_CAP_SRGB_FB = (1 << 8), MPGL_CAP_FLOAT_TEX = (1 << 9), MPGL_CAP_TEX_RG = (1 << 10), // GL_ARB_texture_rg / GL 3.x MPGL_CAP_VDPAU = (1 << 11), // GL_NV_vdpau_interop -- cgit v1.2.3