diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-08-01 22:45:43 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-08-01 23:08:36 +0300 |
commit | 48e661e05de59a055a261430e877f7d8bc4d4c5f (patch) | |
tree | 512ad11aff13f2043ab49e74c857a9db7a34080d | |
parent | e8dd5e5cc6b7366c36f19035f94864a1b320cb83 (diff) |
GPUMaterial: Fix assert when shader failed to compile.
-rw-r--r-- | source/blender/gpu/intern/gpu_shader.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_shader.c b/source/blender/gpu/intern/gpu_shader.c index 0d5183d82ab..5346d3f1aee 100644 --- a/source/blender/gpu/intern/gpu_shader.c +++ b/source/blender/gpu/intern/gpu_shader.c @@ -580,7 +580,10 @@ void GPU_shader_transform_feedback_disable(GPUShader *UNUSED(shader)) void GPU_shader_free(GPUShader *shader) { +#if 0 /* Would be nice to have, but for now the Deferred compilation + * does not have a GPUContext. */ BLI_assert(GPU_context_active_get() != NULL); +#endif BLI_assert(shader); if (shader->vertex) |