GLCompute: Apply state before dispatch

This commit is contained in:
2022-02-15 00:10:50 +01:00
parent ad1f8a50b0
commit 302c74e596

View File

@@ -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);
}