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
path: root/source
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2017-10-02 23:16:50 +0300
committerClément Foucault <foucault.clem@gmail.com>2017-10-02 23:16:50 +0300
commit2bd36338d3ff809c104fe4a30e9332a2929f10c2 (patch)
treef9ccdba117b94c5f71654386fa61c9d58cee70f8 /source
parentc548c76804e49d8c708aa42dacb87c5df1321d00 (diff)
Gawain : Add workaround to fix bad sync of the program_in_use flag.
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/intern/draw_manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c
index fab2df680ea..ec22baace3e 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -1809,6 +1809,9 @@ static void draw_geometry_execute(DRWShadingGroup *shgroup, Gwn_Batch *geom)
else {
GWN_batch_draw_stupid(geom);
}
+ /* XXX this just tells gawain we are done with the shader.
+ * This does not unbind the shader. */
+ GWN_batch_program_unset(geom);
}
static void draw_geometry(DRWShadingGroup *shgroup, Gwn_Batch *geom, const float (*obmat)[4], ID *ob_data)