From 20d0529355cc4485c0505755b05d86f0fe3cfd55 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 25 Jan 2006 06:04:21 +0000 Subject: [PATCH] =?UTF-8?q?Date:=20Thu,=2004=20Sep=202003=2002:12:35=20+02?= =?UTF-8?q?00=20From:=20Ignacio=20Casta=EF=BF=BDo=20=20?= =?UTF-8?q?Subject:=20[SDL]=20SDL=5FGL=5FGetAttribute(=20SDL=5FGL=5FMULTIS?= =?UTF-8?q?AMPLESAMPLES=20...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It would be nice to add the following lines: case SDL_GL_MULTISAMPLEBUFFERS: *value = 0; break; case SDL_GL_MULTISAMPLESAMPLES: *value = 1; break; in wincommon\SDL_wingl.c int the function WIN_GL_GetAttribute at line 484, so that it returns the correct values when arb_pixel_format is not supported. --- src/video/wincommon/SDL_wingl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/video/wincommon/SDL_wingl.c b/src/video/wincommon/SDL_wingl.c index 20911aee1..186cba4dc 100644 --- a/src/video/wincommon/SDL_wingl.c +++ b/src/video/wincommon/SDL_wingl.c @@ -446,6 +446,12 @@ int WIN_GL_GetAttribute(_THIS, SDL_GLattr attrib, int* value) *value = 0; } break; + case SDL_GL_MULTISAMPLEBUFFERS: + *value = 0; + break; + case SDL_GL_MULTISAMPLESAMPLES: + *value = 1; + break; default: retval = -1; break;