Commit: 1e95a7402c62d2380710a56733e6c4cbe390b3be
Author: Clément Foucault
Date:   Fri Aug 21 13:17:31 2020 +0200
Branches: master
https://developer.blender.org/rB1e95a7402c62d2380710a56733e6c4cbe390b3be

GPUShader: Fix NULL string used as shader name.

The shader name is required with the latest changes.

===================================================================

M       source/blender/gpu/intern/gpu_shader.cc

===================================================================

diff --git a/source/blender/gpu/intern/gpu_shader.cc 
b/source/blender/gpu/intern/gpu_shader.cc
index 9437da19b78..a0034a30590 100644
--- a/source/blender/gpu/intern/gpu_shader.cc
+++ b/source/blender/gpu/intern/gpu_shader.cc
@@ -343,7 +343,7 @@ GPUShader *GPU_shader_create_from_python(const char 
*vertcode,
   }
 
   GPUShader *sh = GPU_shader_create_ex(
-      vertcode, fragcode, geomcode, libcode, defines, GPU_SHADER_TFB_NONE, 
NULL, 0, NULL);
+      vertcode, fragcode, geomcode, libcode, defines, GPU_SHADER_TFB_NONE, 
NULL, 0, "pyGPUShader");
 
   MEM_SAFE_FREE(libcodecat);
   return sh;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to