3c2e8c5326
- Readd math/qwtplot3d as Qt 5 reincarnation. math/qwtplot3d-qt4 can be merged with this port, if anybody still cares for Qt 4. - Take maintainership
11 lines
668 B
C++
11 lines
668 B
C++
--- src/qwt3d_lighting.cpp.orig 2018-11-26 20:04:53 UTC
|
|
+++ src/qwt3d_lighting.cpp
|
|
@@ -175,7 +175,7 @@ void Plot3D::applyLight(unsigned light)
|
|
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);
|
|
}
|