summaryrefslogtreecommitdiffstats
path: root/libvo/vo_opengl.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_opengl.c')
-rw-r--r--libvo/vo_opengl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libvo/vo_opengl.c b/libvo/vo_opengl.c
index 0390955b5b..7b5289838f 100644
--- a/libvo/vo_opengl.c
+++ b/libvo/vo_opengl.c
@@ -1455,6 +1455,10 @@ static void check_gl_features(struct gl_priv *p)
bool have_fbo = gl->mpgl_caps & MPGL_CAP_FB;
bool have_srgb = gl->mpgl_caps & MPGL_CAP_SRGB_TEX;
+ // srgb_compand() not available
+ if (gl->glsl_version < 130)
+ have_srgb = false;
+
char *disabled[10];
int n_disabled = 0;
@@ -1488,6 +1492,10 @@ static void check_gl_features(struct gl_priv *p)
p->use_lut_3d = false;
disabled[n_disabled++] = "color management (FBO)";
}
+ if (!have_srgb && p->use_lut_3d) {
+ p->use_lut_3d = false;
+ disabled[n_disabled++] = "color management (sRGB)";
+ }
if (!have_fbo) {
p->use_scale_sep = false;