Ghost: Fix offline OGL render on windows.
authorRay Molenkamp <github@lazydodo.com>
Tue, 19 Jun 2018 00:10:45 +0000 (18:10 -0600)
committerRay Molenkamp <github@lazydodo.com>
Tue, 19 Jun 2018 00:10:45 +0000 (18:10 -0600)
commit8c77c3653996516ba152eade2c27980ae20a1198
treecd222da4cafd39575eb6e402dcb2dd6c6db18819
parent30c383fd35b5184037ba58ed2f7184af39a7b946
Ghost: Fix offline OGL render on windows.

rBe0c088f8fb5a introduced offline rendering support on windows, sadly it was trying to use the desktop window for getting a context, which given SetPixelFormat can only be called once for any given HDC was an unfortunate choice.

This patch uses a temporary hidden window for getting the opengl context.

Reviewers: mano-wii

Differential Revision: https://developer.blender.org/D3481
intern/ghost/intern/GHOST_ContextWGL.cpp
intern/ghost/intern/GHOST_ContextWGL.h
intern/ghost/intern/GHOST_SystemWin32.cpp