-
- Downloads
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
Showing
- intern/ghost/intern/GHOST_ContextWGL.cpp 40 additions, 135 deletionsintern/ghost/intern/GHOST_ContextWGL.cpp
- intern/ghost/intern/GHOST_ContextWGL.h 0 additions, 14 deletionsintern/ghost/intern/GHOST_ContextWGL.h
- intern/ghost/intern/GHOST_WindowWin32.cpp 23 additions, 16 deletionsintern/ghost/intern/GHOST_WindowWin32.cpp
Loading
Please register or sign in to comment