MiniB3D v0.41

BlitzMax Modules Forums/MiniB3D/MiniB3D v0.41

It reports "OpenGL 1.3 or better present". Entityvisible.bmx compiles and runs fine since there is no texturing.

The problem is in AdjustPixmap function in TTexture type (TTexture.bmx) and specifically in this loop:

' check that width and height size are valid (not too big)
Repeat
Local t
glTexImage2D GL_PROXY_TEXTURE_2D,0,4,width,height,0,GL_RGBA,GL_UNSIGNED_BYTE,Null
glGetTexLevelParameteriv GL_PROXY_TEXTURE_2D,0,GL_TEXTURE_WIDTH,Varptr t
If t Exit
If width=1 And height=1 RuntimeError "Unable to calculate tex size"
If width>1 width:/2
If height>1 height:/2
Forever

If I comment this loop everything runs fine.