diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-10-08 18:58:38 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-10-08 18:58:38 +0300 |
commit | f23bf4cb109cb8f39f873c4f80acbec3f33b098c (patch) | |
tree | 99e084e178236efd4458481b3ab4ab737a567835 /source/blender/editors/space_api | |
parent | 479dc766b5f9eee29fe86b869ee0fa9edb95e5fc (diff) |
Revert "BGL: Workaround broken bgl usage caused by GPU refactor"
This reverts commit f12b0373f322b710b9fa5cebb67bdf363ff90e9f.
Diffstat (limited to 'source/blender/editors/space_api')
-rw-r--r-- | source/blender/editors/space_api/spacetypes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_api/spacetypes.c b/source/blender/editors/space_api/spacetypes.c index b89c8cb2193..2a18ffafc6c 100644 --- a/source/blender/editors/space_api/spacetypes.c +++ b/source/blender/editors/space_api/spacetypes.c @@ -281,7 +281,7 @@ void ED_region_draw_cb_draw(const bContext *C, ARegion *region, int type) } if (has_drawn_something) { /* This is needed until we get rid of BGL which can change the states we are tracking. */ - GPU_bgl_end(); + GPU_force_state(); } } |