vo_opengl: something

Insert explanation here.

Fixes #1023.
This commit is contained in:
wm4 2014-11-26 18:22:57 +01:00
parent 67f775bfbb
commit 46dc5709c8
1 changed files with 1 additions and 1 deletions

View File

@ -1409,7 +1409,7 @@ static void init_video(struct gl_video *p, const struct mp_image_params *params)
p->image_dh = params->d_h;
p->image_params = *params;
if (p->is_rgb && (p->opts.srgb || p->use_lut_3d)) {
if (p->is_rgb && (p->opts.srgb || p->use_lut_3d) && !p->hwdec_active) {
// If we're opening an RGB source like a png file or similar,
// we just sample it using GL_SRGB which treats it as an sRGB source
// and pretend it's linear as far as CMS is concerned