Skip to content

Commit

Permalink
Fixes a type conversion error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorian Galvez-Lopez committed Aug 11, 2014
1 parent 78be599 commit 459f8c1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/pangolin/gldraw.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,12 @@ inline void glDrawFrustrum( const Eigen::Matrix<T,3,3>& Kinv, int w, int h, T sc
const GLfloat yh = scale * (h*Kinv(1,1) + Kinv(1,2));

const GLfloat verts[] = {
xl,yl,scale, xh,yl,scale,
xh,yh,scale, xl,yh,scale,
xl,yl,scale, 0,0,0,
xh,yl,scale, 0,0,0,
xl,yh,scale, 0,0,0,
xh,yh,scale
xl,yl,static_cast<GLfloat>(scale), xh,yl, static_cast<GLfloat>(scale),
xh,yh,static_cast<GLfloat>(scale), xl,yh, static_cast<GLfloat>(scale),
xl,yl,static_cast<GLfloat>(scale), 0,0,0,
xh,yl,static_cast<GLfloat>(scale), 0,0,0,
xl,yh,static_cast<GLfloat>(scale), 0,0,0,
xh,yh,static_cast<GLfloat>(scale)
};

glVertexPointer(3, GL_FLOAT, 0, verts);
Expand Down

0 comments on commit 459f8c1

Please sign in to comment.