From d63f9dddeb0c656af2b8c6135cc40a76f0b5604f Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Fri, 15 Jul 2016 15:18:36 +0100 Subject: [PATCH] hw/xwin/glx: Use multisample attributes with wglChoosePixelFormatARB() Seems like this was omitted in error Signed-off-by: Jon Turney Reviewed-by: Colin Harrison --- hw/xwin/glx/indirect.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw/xwin/glx/indirect.c b/hw/xwin/glx/indirect.c index d84713a0d..ebc1a3c2c 100644 --- a/hw/xwin/glx/indirect.c +++ b/hw/xwin/glx/indirect.c @@ -1737,6 +1737,11 @@ fbConfigToPixelFormatIndex(HDC hdc, __GLXconfig * mode, if (mode->visualRating == GLX_SLOW_VISUAL_EXT) SET_ATTR_VALUE(WGL_ACCELERATION_ARB, WGL_NO_ACCELERATION_ARB); + if (winScreen->has_WGL_ARB_multisample) { + SET_ATTR_VALUE(WGL_SAMPLE_BUFFERS_ARB, mode->sampleBuffers); + SET_ATTR_VALUE(WGL_SAMPLES_ARB, mode->samples); + } + // must support all the drawable types the mode supports if ((mode->drawableType | drawableTypeOverride) & GLX_WINDOW_BIT) SET_ATTR_VALUE(WGL_DRAW_TO_WINDOW_ARB, TRUE);