1
mirror of https://github.com/mpv-player/mpv synced 2024-11-18 21:16:10 +01:00

gl_common: print SW renderer warning only if it was the only reason we rejected it

This commit is contained in:
wm4 2013-11-14 19:33:57 +01:00
parent 467ad4413e
commit 10bcab6bc1

View File

@ -963,7 +963,7 @@ bool mpgl_config_window(struct MPGLContext *ctx, int gl_caps, uint32_t d_width,
MP_WARN(ctx->vo, "Missing OpenGL features:"); MP_WARN(ctx->vo, "Missing OpenGL features:");
list_features(missing, ctx->vo->log, MSGL_WARN, false); list_features(missing, ctx->vo->log, MSGL_WARN, false);
if (missing & MPGL_CAP_NO_SW) { if (missing == MPGL_CAP_NO_SW) {
MP_WARN(ctx->vo, "Rejecting suspected software OpenGL renderer.\n"); MP_WARN(ctx->vo, "Rejecting suspected software OpenGL renderer.\n");
} else if ((missing & MPGL_CAP_GL21) && } else if ((missing & MPGL_CAP_GL21) &&
(ctx->gl->mpgl_caps & MPGL_CAP_GL_LEGACY)) (ctx->gl->mpgl_caps & MPGL_CAP_GL_LEGACY))