mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-10 21:38:15 +00:00
Fix config.h flags
This commit is contained in:
@@ -655,12 +655,16 @@ Mesh LoadMesh(const char *fileName)
|
||||
TraceLog(LOG_WARNING, "[%s] Mesh fileformat not supported, it can't be loaded", fileName);
|
||||
#endif
|
||||
|
||||
#if defined(SUPPORT_MESH_GENERATION)
|
||||
if (mesh.vertexCount == 0)
|
||||
{
|
||||
TraceLog(LOG_WARNING, "Mesh could not be loaded! Let's load a cube to replace it!");
|
||||
mesh = GenMeshCube(1.0f, 1.0f, 1.0f);
|
||||
}
|
||||
else rlLoadMesh(&mesh, false); // Upload vertex data to GPU (static mesh)
|
||||
#else
|
||||
rlLoadMesh(&mesh, false); // Upload vertex data to GPU (static mesh)
|
||||
#endif
|
||||
|
||||
return mesh;
|
||||
}
|
||||
|
Reference in New Issue
Block a user