Use byteCount() instead of obsolete numBytes().
This change is Qt4/Qt5 neutral.
This commit is contained in:
committed by
Yorik van Havre
parent
6c0c0e983b
commit
211a94da4d
@@ -534,7 +534,7 @@ def loadTexture(filename,size=None):
|
||||
#else:
|
||||
# p = QtGui.QImage(filename)
|
||||
size = coin.SbVec2s(p.width(), p.height())
|
||||
buffersize = p.numBytes()
|
||||
buffersize = p.byteCount()
|
||||
numcomponents = int (float(buffersize) / ( size[0] * size[1] ))
|
||||
|
||||
img = coin.SoSFImage()
|
||||
|
||||
Reference in New Issue
Block a user