From: <dr...@bf...> - 2006-09-01 00:35:15
|
Please find attached a patch with some fixes for the OpenGL stub on windows: 1. The functions wglGetCurrentContext() and wglGetCurrentDC() return NULL in the current implementation. I changed them to return the proper GL context and device context respectively. 2. In wglChoosePixelFormat() okayFlags should include PFD_GENERIC_FORMAT. The flag basically says that there is no hardware acceleration at all [1], [2]. [1] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/opengl/ntopnglr_73jm.asp [2] http://www.microsoft.com/msj/archive/S2085.aspx Michael |