From d00a677fff2edff9f24460ffdd470b4bdb40ec01 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 21 May 2012 14:51:09 +0200 Subject: [PATCH] GLX: removed error warning when requesting legacy context --- ultragrid/src/gl_context.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ultragrid/src/gl_context.c b/ultragrid/src/gl_context.c index 5e4206a50..375227449 100644 --- a/ultragrid/src/gl_context.c +++ b/ultragrid/src/gl_context.c @@ -25,7 +25,9 @@ void init_gl_context(struct gl_context *context, int which) { context->legacy = FALSE; } if(!context->context) { - fprintf(stderr, "[RTDXT] OpenGL 3.1 profile failed to initialize, falling back to legacy profile.\n"); + if(which != GL_CONTEXT_LEGACY) { + fprintf(stderr, "[RTDXT] OpenGL 3.1 profile failed to initialize, falling back to legacy profile.\n"); + } context->context = glx_init(OPENGL_VERSION_UNSPECIFIED); context->legacy = TRUE; }