drOpenGL: Added a DG_Init() function to be called when the plugin is first loaded and renamed the existing DG_Init() to DG_CreateContext().
Reorganized the drOpenGL project file so that I can see/edit the Unix-specific code.
Cleaned up the win32 code for creating a OpenGL rendering context. Plus, now uses more robust error checking and doesn't force an abnormal exit when some task in setting up fails (to afford the engine an opportunity to shutdown gracefully). Always release the device context, even if the procedure fails.
drOpenGL: Added a DG_Init() function to be called when the plugin is first loaded and renamed the existing DG_Init() to DG_CreateContext().
Reorganized the drOpenGL project file so that I can see/edit the Unix-specific code.
Cleaned up the win32 code for creating a OpenGL rendering context. Plus, now uses more robust error checking and doesn't force an abnormal exit when some task in setting up fails (to afford the engine an opportunity to shutdown gracefully). Always release the device context, even if the procedure fails.