Fix FTBFS with stricter C++11

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 6 years ago
parent f88db56fed
commit 566332a92e
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -227,9 +227,9 @@ void PendulumGLWidget::initializeGL(void)
glLoadIdentity();
// set positon of light0
GLfloat lightPos[4]=
{lightR * sin(lightTheta) * sin(lightPhi),
lightR * sin(lightTheta) * cos(lightPhi),
lightR * cos(lightTheta),
{(GLfloat)(lightR * sin(lightTheta) * sin(lightPhi)),
(GLfloat)(lightR * sin(lightTheta) * cos(lightPhi)),
(GLfloat)(lightR * cos(lightTheta)),
0};
glLightfv(GL_LIGHT0, GL_POSITION, lightPos);
// set positon of light1

Loading…
Cancel
Save