Blender Git Loki

Git Commits -> Revision b43cdc9

Revision b43cdc9 by Dalai Felinto (master)
June 30, 2017, 11:33 (GMT)
Fix T51721: OpenGL Detection is broken on Windows

Now computers that support OpenGl3.3 (but not 4.5) can run Blender 2.8.

For any given HDC, you may only call SetPixelFormat *ONCE* any future
calls for the same HDC will fail. And computers that would support only
OpenGL 3.3 wouldn't have a change to get a valid OpenGL context because
the pixelformat was already set while trying to probe the supported
contexts.

We fix this by splitting the final context creation from the query of
supported OpenGL versions.

Patch by Ray Molenkamp (bzzt_ploink/LazyDodo) with code style fixes and
comments by me.

Commit Details:

Full Hash: b43cdc91ce4188e2fc18ff6646781ff03fbfd693
Parent Commit: 0831099
Lines Changed: +147, -66

3 Modified Paths:

/intern/ghost/intern/GHOST_ContextWGL.cpp (+94, -23) (Diff)
/intern/ghost/intern/GHOST_ContextWGL.h (+14, -0) (Diff)
/intern/ghost/intern/GHOST_WindowWin32.cpp (+39, -43) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021