aboutsummaryrefslogtreecommitdiffstats
path: root/examples/opengl
diff options
context:
space:
mode:
authorMatti Airas <matti.p.airas@nokia.com>2010-08-30 13:47:46 +0300
committerMatti Airas <matti.p.airas@nokia.com>2010-09-02 16:30:34 +0300
commitc37bfe35ad6124a32e92e349780205e0b8bfb068 (patch)
treed1d6ea0d3d526d73fd79f43fdfee6cd4db5a2c8e /examples/opengl
parente5ea41cbf23eefb644918c0e0d8bba56db1bc249 (diff)
fixed QString issues of textures.py
The app gives the following warning and doesn't properly show the textures: WARNING: Application calling GLX 1.3 function "glXCreatePixmap" when GLX 1.3 is not supported! This is an application bug! Also, still gives an exception: 'Internal C++ object already deleted.'
Diffstat (limited to 'examples/opengl')
-rwxr-xr-xexamples/opengl/textures/textures.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/opengl/textures/textures.py b/examples/opengl/textures/textures.py
index 29ae19a..002995b 100755
--- a/examples/opengl/textures/textures.py
+++ b/examples/opengl/textures/textures.py
@@ -137,7 +137,7 @@ class GLWidget(QtOpenGL.QGLWidget):
glNewList(dlist, GL_COMPILE)
for i in range(6):
- self.bindTexture(QtGui.QPixmap(QtCore.QString(":/images/side%1.png").arg(i + 1)))
+ self.bindTexture(QtGui.QPixmap(":/images/side%d.png" % (i + 1)))
glBegin(GL_QUADS)
for j in range(4):