PYMOL-5122: Don't render null mesh cgo

This commit is contained in:
Jarrett Johnson
2025-03-11 19:24:12 -04:00
parent cc6ae216ec
commit ffa26aab3e

View File

@@ -1122,6 +1122,11 @@ static CGO* ObjectMeshRenderImpl(
return cgo;
}
}
if (!ms->shaderCGO) {
return nullptr;
}
ok &= ObjectMeshStateRenderShader(ms, I, info);
if (!ok) {