Details
-
Bug
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
4.8.3
-
None
-
Mac OS X 10.7.5
Description
Creating a QImage with setPixel() method will crash when using size 256x256 on Mac OS X 10.7.5.
QImage uvtex( 256, 256, QImage::Format_RGB888); for (int y=0; y < uvtex.height(); y++) { for (int x=0; x<uvtex.width(); x++) { const int red = 0; const int green = 0; const int blue = 0; uvtex.setPixel(x, y, qRgb(red, green, blue)); } }
The same code works fine on Mac OS X 10.6.8 and Windows 7. It also works if the size is changed to 257x257.