qeglfscursor.cpp:300: error: narrowing conversion of
‘((const QRectF*)r)->QRectF::left()’ from ‘qreal’ to ‘const GLfloat’
inside { }
Change-Id: Ic4273828ad361ffac5a68068372bf400d468fb38
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
glUseProgram(m_program);
+ const GLfloat x1 = r.left();
+ const GLfloat x2 = r.right();
+ const GLfloat y1 = r.top();
+ const GLfloat y2 = r.bottom();
const GLfloat cursorCoordinates[] = {
- r.left(), r.bottom(),
- r.right(), r.bottom(),
- r.left(), r.top(),
- r.right(), r.top()
+ x1, y2,
+ x2, y2,
+ x1, y1,
+ x2, y1
};
const GLfloat s1 = m_cursor.textureRect.left();