PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 621 - QGLWidget.bindTexture(QString) does not bind the texture correctly
: QGLWidget.bindTexture(QString) does not bind the texture correctly
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: QtOpenGL
: 1.0.0 beta3
: All MS Windows XP/Vista/7
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-01-17 20:35 EET by Farsmo
Modified: 2011-01-21 15:44 EET (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Farsmo 2011-01-17 20:35:57 EET
Modify examples/opengl/textures/texture.py so that the bindTexture call becomes
            self.bindTexture(":/images/side%d.png" % (i + 1))
or
            self.bindTexture("images/side%d.png" % (i + 1))
(the point of this modification is to work around bug 379 by passing a QString
instead of a QPixmap; if you are not affected by bug 379 this is probably not
necessary).

Upon execution, the cubes remain blank, when they should normally be textured.
The file specified in the QString is correctly read from, but the texture is
not applied to the object.

I'm using:
- Windows
- PySide 1.0.0-beta3
- PyOpenGL 3.0.1 (the latest version)
- the C++ Qt texture demo works correctly, so my graphics drivers are probably
not to blame
Comment 1 Farsmo 2011-01-17 22:17:00 EET
Actually bindTexture(QString) expects an OpenGL compressed texture, not a PNG
file, so this is not a bug. Closing.
Comment 2 renato filho 2011-01-21 15:44:52 EET
release beta4