mirror of
https://github.com/schrodinger/pymol-open-source.git
synced 2026-06-03 19:54:24 +08:00
PYMOL-5122: Don't render null mesh cgo
This commit is contained in:
@@ -1122,6 +1122,11 @@ static CGO* ObjectMeshRenderImpl(
|
||||
return cgo;
|
||||
}
|
||||
}
|
||||
|
||||
if (!ms->shaderCGO) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
ok &= ObjectMeshStateRenderShader(ms, I, info);
|
||||
|
||||
if (!ok) {
|
||||
|
||||
Reference in New Issue
Block a user