summaryrefslogtreecommitdiff
path: root/math/qtiplot/files/patch-3rdparty_qwtplot3d_src_qwt3d__lighting.cpp
blob: 622edbe3e91fa521cfb6d555bdea53b5dc16cc5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- 3rdparty/qwtplot3d/src/qwt3d_lighting.cpp.orig	2011-08-24 10:25:10 UTC
+++ 3rdparty/qwtplot3d/src/qwt3d_lighting.cpp
@@ -175,7 +175,7 @@ void ExtGLWidget::applyLight(unsigned li
   glRotatef( lights_[light].rot.x-90, 1.0, 0.0, 0.0 ); 
   glRotatef( lights_[light].rot.y   , 0.0, 1.0, 0.0 ); 
   glRotatef( lights_[light].rot.z   , 0.0, 0.0, 1.0 );
-  GLfloat lightPos[4] = { lights_[light].shift.x, lights_[light].shift.y, lights_[light].shift.z, 1.0};
+  GLfloat lightPos[4] = { static_cast<GLfloat>(lights_[light].shift.x), static_cast<GLfloat>(lights_[light].shift.y), static_cast<GLfloat>(lights_[light].shift.z), 1.0};
   GLenum le = lightEnum(light);
   glLightfv(le, GL_POSITION, lightPos);  
 }