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>2022-02-15 02:10:50 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-02-15 02:10:50 +0300
commit302c74e596882cea13ac878cfe6b12d37d0cd9c6 (patch)
tree7bf91db0cacadb53f4267cfa82cb98ee204f3aee
parentad1f8a50b02652e52e44ef06e24d2825c677be4e (diff)
GLCompute: Apply state before dispatch
-rw-r--r--source/blender/gpu/opengl/gl_compute.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/opengl/gl_compute.cc b/source/blender/gpu/opengl/gl_compute.cc
index 4e178f74d8b..1913174eaef 100644
--- a/source/blender/gpu/opengl/gl_compute.cc
+++ b/source/blender/gpu/opengl/gl_compute.cc
@@ -15,6 +15,9 @@ namespace blender::gpu {
void GLCompute::dispatch(int group_x_len, int group_y_len, int group_z_len)
{
GL_CHECK_RESOURCES("Compute");
+
+ GLContext::get()->state_manager->apply_state();
+
glDispatchCompute(group_x_len, group_y_len, group_z_len);
}