3 lines BlitzMax can't compile

BlitzMax Forums/BlitzMax Programming/3 lines BlitzMax can't compile

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

pixmap:TPixmap=CreatePixmap(width,height,PF_RGB888,3)
Print "Pitch: " +Pitch
Print "BPP: " +BytesPerPixel[pixmap.format]
'glPixelStorei GL_UNPACK_ROW_LENGTH,Pixmap.Pitch/BytesPerPixel[pixmap.format]
'gluBuild2DMipmaps GL_TEXTURE_CUBE_MAP_POSITIVE_X,format,width,height,GL_RGB,GL_UNSIGNED_BYTE,pixmap.pixels


Pitch is equal to 0, thats probably why.

Dividing by 0 = no no in BlitzMax?

EDIT: gets stuck at compiling on release, but fine for debug