Problem is that since 2007 thinBasic has changed the way it passes arrays to external functions.
It expect the initial element to which pass the reference
If you want to make it working with current 1.8.x version change from
[code=thinbasic]
glTexImage2D(%GL_TEXTURE_2D, 0, %GL_RGB, %SIZEX, %SIZEY, 0, %GL_RGB, %GL_UNSIGNED_BYTE, texture)
[/code]
to
[code=thinbasic]
glTexImage2D(%GL_TEXTURE_2D, 0, %GL_RGB, %SIZEX, %SIZEY, 0, %GL_RGB, %GL_UNSIGNED_BYTE, texture(1))
[/code]
when you pass an array as parameter to an external function.
I will see if I can improve.
Eros
Bookmarks