avoid breaking change
This commit is contained in:
parent
3013d45de1
commit
762cfb4a4a
|
|
@ -1538,6 +1538,11 @@ void DrawMeshInstanced(Mesh mesh, Material material, const Matrix *transforms, i
|
|||
float16 *instanceTransforms = NULL;
|
||||
unsigned int instancesVboId = 0;
|
||||
|
||||
Shader shader = material.shaderInstanced;
|
||||
if (material.shader.id != rlGetShaderIdDefault()) {
|
||||
shader = material.shader;
|
||||
}
|
||||
|
||||
// Bind shader program
|
||||
rlEnableShader(material.shaderInstanced.id);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user