Skip to content

Commit

Permalink
Merge pull request stevenlovegrove#4 from arpg/fix-narrowing
Browse files Browse the repository at this point in the history
Fixes a type conversion error
  • Loading branch information
Dorian committed Aug 12, 2014
2 parents 78be599 + 459f8c1 commit a99e22a
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 a99e22a

Please sign in to comment.