Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Oct 17, 2023
1 parent 4922796 commit a0aa85b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/src/FabricPrepareRenderResources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ struct TileLoadThreadResult {
};

bool hasBaseColorTextureGltf(const FabricMesh& fabricMesh) {
return fabricMesh.material->getMaterialDefinition().hasBaseColorTextures() &&
return fabricMesh.material != nullptr && fabricMesh.material->getMaterialDefinition().hasBaseColorTextures() &&
fabricMesh.materialInfo.baseColorTexture.has_value();
}

Expand Down

0 comments on commit a0aa85b

Please sign in to comment.