Blender Git Commit Log

Git Commits -> Revision 0bf615f

Revision 0bf615f by Germano Cavalcante (master)
February 10, 2018, 02:32 (GMT)
GHOST: Optimize and simplify the creation of a GHOST_Context on Windows

Instead of cloning the window to create dummyHWNDs and dummyHDCs to avoid calling the SetPixelFormat more than once in the same window, use the original window and HDC and do not call the SetPixelFormat again.

In addition to avoiding a lot of unnecessary calls, it simplifies the code and makes it match the others OS

Commit Details:

Full Hash: 0bf615fc2464a06b3e40fc5936873b67ec6dd684
Parent Commit: 832f7a6
Lines Changed: +63, -165

3 Modified Paths:

/intern/ghost/intern/GHOST_ContextWGL.cpp (+40, -135) (Diff)
/intern/ghost/intern/GHOST_ContextWGL.h (+0, -14) (Diff)
/intern/ghost/intern/GHOST_WindowWin32.cpp (+23, -16) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021