From: Vasiliy Ulyanov Date: Tue, 16 Jun 2015 16:50:09 +0000 (+0300) Subject: VIGS: make more strict GLX FBConfig choosing X-Git-Tag: TizenStudio_2.0_p3.0~146 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9deb81f9bf95990e123efc2263508545652ac8d;p=sdk%2Femulator%2Fqemu.git VIGS: make more strict GLX FBConfig choosing Certain GPUs (e.g. AMD) have several configs with identical IDs. Hence additional attributes need to be specified. Change-Id: Id60b9f44ed0e529dea9f07acca2ef5f5034d6528 Signed-off-by: Vasiliy Ulyanov --- diff --git a/hw/vigs/vigs_gl_backend_glx.c b/hw/vigs/vigs_gl_backend_glx.c index 7b1fe13..fbba559 100644 --- a/hw/vigs/vigs_gl_backend_glx.c +++ b/hw/vigs/vigs_gl_backend_glx.c @@ -226,6 +226,16 @@ static GLXFBConfig vigs_gl_backend_glx_get_config(struct vigs_gl_backend_glx *gl int config_attribs[] = { GLX_FBCONFIG_ID, 0, + GLX_DOUBLEBUFFER, True, + GLX_RED_SIZE, 8, + GLX_GREEN_SIZE, 8, + GLX_BLUE_SIZE, 8, + GLX_ALPHA_SIZE, 8, + GLX_BUFFER_SIZE, 32, + GLX_DEPTH_SIZE, 24, + GLX_STENCIL_SIZE, 8, + GLX_RENDER_TYPE, GLX_RGBA_BIT, + GLX_DRAWABLE_TYPE, GLX_PBUFFER_BIT, None };