From 0cd283447cbaeb79320736bc4ea7558336730e34 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Thu, 26 Jul 2007 15:12:39 +0000 Subject: [PATCH] fix condition in rosglCopyContext patch by Dirus (DannyDaemonic at gmail.com) See issue #2375 for more details. svn path=/trunk/; revision=27849 --- reactos/dll/win32/opengl32/wgl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/opengl32/wgl.c b/reactos/dll/win32/opengl32/wgl.c index bb6ab9c6b8f..7c70f2e5a2f 100644 --- a/reactos/dll/win32/opengl32/wgl.c +++ b/reactos/dll/win32/opengl32/wgl.c @@ -582,7 +582,7 @@ rosglCopyContext( HGLRC hsrc, HGLRC hdst, UINT mask ) } /* I think this is only possible within one ICD */ - if (src->icd != src->icd) + if (src->icd != dst->icd) { DBGPRINT( "Error: src and dst GLRC use different ICDs!" ); SetLastError( ERROR_INVALID_HANDLE );