mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 17:42:17 +00:00
vo_opengl: drop sRGB framebuffer detection
We've stopped using them some time ago (we're doing things manually instead).
This commit is contained in:
parent
f033eaff9b
commit
4a06a66501
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user