Getting a TGLImageFrame from a TImage

BlitzMax Forums/BlitzMax Beginners Area/Getting a TGLImageFrame from a TImage

I'm trying to get the handle of a TglImageFrame from a loaded image. The image is definitely loaded ( verified in that I can draw with it and it returns it's width correctly ) and I'm using the GL drivers with SetGraphicsDriver GLMax2DDriver()


However, the frame is always null. Just not sure what else I need to do before retrieving the imageframe.

Local frm:TGLImageFrame
frm=TGLImageFrame(Image.frames[0])
If Frm=Null Then RuntimeError "NO FRAME"


It errors with "NO FRAME" every time.