From c37bfe35ad6124a32e92e349780205e0b8bfb068 Mon Sep 17 00:00:00 2001 From: Matti Airas Date: Mon, 30 Aug 2010 13:47:46 +0300 Subject: 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.' --- examples/opengl/textures/textures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/opengl') 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): -- cgit v1.2.3