Skip to content
Snippets Groups Projects
Commit 179d3fff authored by Bastien Gorissen's avatar Bastien Gorissen
Browse files

Fix type problem (double vs. float)

parent bfae3f35
No related branches found
No related tags found
No related merge requests found
...@@ -133,10 +133,10 @@ void drawContext::drawEllipse(double x, double y, double z, float v0[3], float v ...@@ -133,10 +133,10 @@ void drawContext::drawEllipse(double x, double y, double z, float v0[3], float v
if(light) glEnable(GL_LIGHTING); if(light) glEnable(GL_LIGHTING);
glPushMatrix(); glPushMatrix();
GLfloat m[16] = { GLfloat m[16] = {
v0[0], v0[1], v0[2], .0d, v0[0], v0[1], v0[2], .0f,
v1[0], v1[1], v1[2], .0d, v1[0], v1[1], v1[2], .0f,
v0[1]*v1[2]-v0[2]*v1[1], v0[2]*v1[0]-v0[0]*v1[2], v0[0]*v1[1]-v0[1]*v1[0], .0d, v0[1]*v1[2]-v0[2]*v1[1], v0[2]*v1[0]-v0[0]*v1[2], v0[0]*v1[1]-v0[1]*v1[0], .0f,
x, y, z, 1.d x, y, z, 1.f
}; };
glMultMatrixf(m); glMultMatrixf(m);
glCallList(_displayLists + 2); glCallList(_displayLists + 2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment