Blender Git Commit Log

Git Commits -> Revision 1902d2b

July 27, 2013, 20:32 (GMT)
Enabled GLEW_MX and got it working with GHOST_ContextWGL

GLEW_MX puts each set of GL entry points into its own independent context. This should reduce the possibility of WGL and GL getting mismatched.

It should also allow desktop and embedded GL to live in the same program at the same time, which isn't really the end goal, but if multiple versions of OpenGL could run in the same instance of Blender it would mean that GL contexts are well managed and encapsulated.

The biggest chore is probably sharing textures between alien contexts, however, I believe that problem can be solved by the same mechanism that will be needed to allow Blender to recover from power management events on mobile devices (and probably also the desktop when using ES).

Not going to go too far down that road now, but this is the foundation.

Commit Details:

Full Hash: 1902d2bcfd35ebd297ca1714b3c4fc353a7ecb6e
SVN Revision: 58676
Parent Commit: 2a27084
Lines Changed: +135, -36

10 Modified Paths:

/CMakeLists.txt (+1, -1) (Diff)
/extern/glew-es/include/GL/glew.h (+1, -1) (Diff)
/intern/ghost/intern/GHOST_Context.cpp (+23, -0) (Diff)
/intern/ghost/intern/GHOST_Context.h (+27, -1) (Diff)
/intern/ghost/intern/GHOST_ContextWGL.cpp (+56, -30) (Diff)
/intern/ghost/intern/GHOST_ContextWGL.h (+10, -1) (Diff)
/source/blender/gpu/intern/gpu_extensions.c (+0, -1) (Diff)
/source/blender/gpu/intern/gpu_glew.h (+12, -0) (Diff)
/source/blender/gpu/intern/gpu_simple_shader.c (+1, -1) (Diff)
/source/blender/python/generic/bgl.c (+4, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021