calculate texture size ?

BlitzMax Forums/OpenGL Module/calculate texture size ?

PaulJG(Posted 2005) [#1]
I'm only using the lines:

temp_mem:tpixmap=LoadPixmap("texture.bmp")
Global tex=bglTexFromPixmap(temp_mem,0)

Yet it throws up the error,
[ERROR] Unable to calculate tex size

Can anyone please shed some light !?


PaulJG(Posted 2005) [#2]
Scrub that - sorted.

Trying to load the texture before setting the graphics mode.