bglTexFromBitmap problem

BlitzMax Forums/BlitzMax OpenGL Programming/bglTexFromBitmap problem

Can anyone see what I'm doing wrong?

Local pm:TPixMap = LoadPixmap("dude.bmp")
Local Texture = bglTexFromPixmap(pm,True)


All I get is a runtime error saying:
"Unable to calculate tex size"

I've tried different images&formats but all I get is that error.

I'm using an Intel 82845 gfxcard.(Newest drivers installed)