summaryrefslogtreecommitdiffstats
path: root/examples/qwidget-compositor/textureblitter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qwidget-compositor/textureblitter.cpp')
-rw-r--r--examples/qwidget-compositor/textureblitter.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/qwidget-compositor/textureblitter.cpp b/examples/qwidget-compositor/textureblitter.cpp
index 0d3035dcc..5607274b2 100644
--- a/examples/qwidget-compositor/textureblitter.cpp
+++ b/examples/qwidget-compositor/textureblitter.cpp
@@ -102,9 +102,9 @@ void TextureBlitter::drawTexture(int textureId, const QRectF &targetRect, const
0, 1
};
- int x1 = targetRect.left();
- int x2 = targetRect.right();
- int y1, y2;
+ GLfloat x1 = targetRect.left();
+ GLfloat x2 = targetRect.right();
+ GLfloat y1, y2;
if (targethasInvertedY) {
if (sourceHasInvertedY) {
y1 = targetRect.top();
@@ -124,10 +124,10 @@ void TextureBlitter::drawTexture(int textureId, const QRectF &targetRect, const
}
const GLfloat vertexCoordinates[] = {
- x1, y1, zValue,
- x2, y1, zValue,
- x2, y2, zValue,
- x1, y2, zValue
+ GLfloat(x1), GLfloat(y1), zValue,
+ GLfloat(x2), GLfloat(y1), zValue,
+ GLfloat(x2), GLfloat(y2), zValue,
+ GLfloat(x1), GLfloat(y2), zValue
};
//Set matrix to transfrom geometry values into gl coordinate space.