Browse Source

Fallback to default shader

Ray 9 năm trước cách đây
mục cha
commit
522af9f477
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/rlgl.c

+ 1 - 0
src/rlgl.c

@@ -2579,6 +2579,7 @@ static Shader LoadStandardShader(void)
     else TraceLog(WARNING, "[SHDR ID %i] Standard shader could not be loaded", shader.id);
 
     if (shader.id != 0) LoadDefaultShaderLocations(&shader);
+    else shader = GetDefaultShader();
 
     return shader;
 }