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