Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-10-09 16:12:28 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-10-09 17:33:59 +0300
commitd39043b5ae054510e3683b63cfefde76e5a4c6db (patch)
tree21d7b63cf0eeec6964b48cb6836cfd611add5f02 /source/blender/editors/space_api/spacetypes.c
parent1f6b7387ad0177c1dec9bb83b7c7586a454691db (diff)
Revert "Revert "BGL: Workaround broken bgl usage caused by GPU refactor""
This reverts commit f23bf4cb109cb8f39f873c4f80acbec3f33b098c.
Diffstat (limited to 'source/blender/editors/space_api/spacetypes.c')
-rw-r--r--source/blender/editors/space_api/spacetypes.c2
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 2a18ffafc6c..b89c8cb2193 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_force_state();
+ GPU_bgl_end();
}
}