diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-12 18:29:37 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-12 18:29:37 +0300 |
commit | bf3f4da9472516be12dcc69740fa69b6d72f1274 (patch) | |
tree | 8e8eaaee61d0570026c46eeeb8ea882146b04ca7 /source/blender/gpu/intern/gpu_state_private.hh | |
parent | 6bc0a8424e9b794accf70534ed55478337f0e3e3 (diff) |
GPU: Fix wrong state before python callbacks
This was caused by a missing state apply.
We force the GPUState to be set after the callbacks to avoid
desync between our state tracker and the real gl state.
This fixes some issues but a better general fix for all BGL would
be better.
This fix T80297 2.91 texture alpha is not transparent
Diffstat (limited to 'source/blender/gpu/intern/gpu_state_private.hh')
-rw-r--r-- | source/blender/gpu/intern/gpu_state_private.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_state_private.hh b/source/blender/gpu/intern/gpu_state_private.hh index d85375a85bb..b8d247ec175 100644 --- a/source/blender/gpu/intern/gpu_state_private.hh +++ b/source/blender/gpu/intern/gpu_state_private.hh @@ -159,6 +159,7 @@ class StateManager { virtual ~StateManager(){}; virtual void apply_state(void) = 0; + virtual void force_state(void) = 0; virtual void issue_barrier(eGPUBarrier barrier_bits) = 0; |