Blender Git Commit Log

Git Commits -> Revision f12b037

Revision f12b037 by Clément Foucault (master)
October 8, 2020, 14:36 (GMT)
BGL: Workaround broken bgl usage caused by GPU refactor

This directly adress the issues caused by rB536c2e0ec916.

Since the state tracking is done at a lower level, using the bgl
functions needs to be safegarded by the state manager.
The current workaround is to bypass `apply_state` when inside a
callback that used a `bgl` function.

Related to T80730.

This fix T81003.

Also this fix the default blend equation for callbacks.
Fixes T80169 T81289.

Commit Details:

Full Hash: f12b0373f322b710b9fa5cebb67bdf363ff90e9f
Parent Commit: 5f36421
Lines Changed: +50, -10

7 Modified Paths:

/source/blender/editors/space_api/spacetypes.c (+1, -1) (Diff)
/source/blender/gpu/GPU_state.h (+4, -1) (Diff)
/source/blender/gpu/intern/gpu_state.cc (+32, -3) (Diff)
/source/blender/gpu/intern/gpu_state_private.hh (+1, -0) (Diff)
/source/blender/gpu/opengl/gl_debug.cc (+1, -1) (Diff)
/source/blender/gpu/opengl/gl_state.cc (+8, -4) (Diff)
/source/blender/python/generic/bgl.c (+3, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021