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>2018-08-01 22:45:43 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-08-01 23:08:36 +0300
commit48e661e05de59a055a261430e877f7d8bc4d4c5f (patch)
tree512ad11aff13f2043ab49e74c857a9db7a34080d /source/blender/gpu/intern/gpu_shader.c
parente8dd5e5cc6b7366c36f19035f94864a1b320cb83 (diff)
GPUMaterial: Fix assert when shader failed to compile.
Diffstat (limited to 'source/blender/gpu/intern/gpu_shader.c')
-rw-r--r--source/blender/gpu/intern/gpu_shader.c3
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)