minor pixmap bug

BlitzMax Forums/BlitzMax Programming/minor pixmap bug

You will need to copy the result of PixmapWindow for this to work reliably, eg:
SuperStrict

SetGraphicsDriver GLMax2DDriver()
Graphics 800,600,0

Local pixmap:TPixmap = CreatePixmap(128,128,PF_RGBA8888)
Local temp:TPixmap = PixmapWindow( pixmap , 0 , 0 , 0 , 0 ).Copy()
Local image:TImage = LoadImage( temp )
DrawImage image , 0 , 0

Pixmap 'windows' are only as valid as long as their source pixmaps exist.