From 8aaef28406647d6aa706c34f57dd151f00b18e5b Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 28 Oct 1999 13:13:35 +0000 Subject: [PATCH] Corrected small mistake (set static variable) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/glcanvas/win/glcanvas.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/glcanvas/win/glcanvas.cpp b/utils/glcanvas/win/glcanvas.cpp index fd1e1ef44b..48651358b6 100644 --- a/utils/glcanvas/win/glcanvas.cpp +++ b/utils/glcanvas/win/glcanvas.cpp @@ -180,6 +180,8 @@ bool wxGLCanvas::Create(wxWindow *parent, wxWindowID id, // the CS_OWNDC style for GLCanvas. /* + From Angel Popov + Here are two snips from a dicussion in the OpenGL Gamedev list that explains how this problem can be fixed: @@ -220,6 +222,7 @@ bool wxGLCanvas::Create(wxWindow *parent, wxWindowID id, return FALSE; } + registeredGLCanvasClass = TRUE; } wxCHECK_MSG( parent, FALSE, wxT("can't create wxWindow without parent") ); -- 2.45.2