mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 06:23:35 +02:00
call gluDeleteQuadric only if sphare is initialised
This commit is contained in:
parent
3b3ab9f68f
commit
2a4a7b4ab8
1 changed files with 3 additions and 2 deletions
|
@ -80,8 +80,9 @@ Head::Head()
|
||||||
}
|
}
|
||||||
|
|
||||||
Head::~Head() {
|
Head::~Head() {
|
||||||
// all data is primitive, do nothing
|
if (sphere) {
|
||||||
gluDeleteQuadric(sphere);
|
gluDeleteQuadric(sphere);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Head* Head::clone() const {
|
Head* Head::clone() const {
|
||||||
|
|
Loading…
Reference in a new issue