From a41b00358256978763b0cd9ced59d982bbb12b8d Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 28 Mar 2013 11:47:23 -0700 Subject: [PATCH] perform proper verification for creation of new sphere --- interface/src/Head.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/src/Head.cpp b/interface/src/Head.cpp index acb52f2189..8cf831d426 100644 --- a/interface/src/Head.cpp +++ b/interface/src/Head.cpp @@ -456,7 +456,7 @@ void Head::render(int faceToFace, int isMine) glPopMatrix(); // Right Pupil - if (!sphere) { + if (sphere == NULL) { sphere = gluNewQuadric(); gluQuadricTexture(sphere, GL_TRUE); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);