diff --git a/video/out/opengl/formats.c b/video/out/opengl/formats.c index b56da5ddc2..3ca6fe7b8e 100644 --- a/video/out/opengl/formats.c +++ b/video/out/opengl/formats.c @@ -115,7 +115,7 @@ int gl_format_feature_flags(GL *gl) | (gl->es >= 300 ? F_ES3 : 0) | (gl->es >= 320 ? F_ES32 : 0) | (gl->mpgl_caps & MPGL_CAP_EXT16 ? F_EXT16 : 0) - | ((gl->es && + | ((gl->es >= 300 && (gl->mpgl_caps & MPGL_CAP_TEX_RG) && (gl->mpgl_caps & MPGL_CAP_EXT_CR_HFLOAT) && (gl->mpgl_caps & MPGL_CAP_OES_HFLOAT_LIN)) ? F_EXTF16 : 0)