From c7fc4067ebd4758dd7566b20169a428dc8926c8d Mon Sep 17 00:00:00 2001 From: Morgan Armand Date: Wed, 2 Nov 2011 20:12:39 +0100 Subject: wglSetPixelFormat should ignore the ppfd parameter. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: José Fonseca --- src/gallium/state_trackers/wgl/stw_wgl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gallium/state_trackers') diff --git a/src/gallium/state_trackers/wgl/stw_wgl.c b/src/gallium/state_trackers/wgl/stw_wgl.c index 5fbb7bf7cfd..d38bfbefdd7 100644 --- a/src/gallium/state_trackers/wgl/stw_wgl.c +++ b/src/gallium/state_trackers/wgl/stw_wgl.c @@ -172,8 +172,10 @@ wglSetPixelFormat( int iPixelFormat, const PIXELFORMATDESCRIPTOR *ppfd ) { - if (ppfd->nSize != sizeof( PIXELFORMATDESCRIPTOR )) - return FALSE; + /* SetPixelFormat (hence wglSetPixelFormat) must not touch ppfd, per + * http://msdn.microsoft.com/en-us/library/dd369049(v=vs.85).aspx + */ + (void) ppfd; return DrvSetPixelFormat( hdc, iPixelFormat ); } -- cgit v1.2.3