on one of these two lines:
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
Inside function GLAdjustTexSize( width Var,height Var )
Called from function GLTexFromPixmap( pixmap:TPixmap,mipmap=True )
:( Crashes without launching debugger in debug mode. Any ideas? I'd like to be able to use textures in my game.
Ive tracked the problem to where GLTexFromPixmap calls GLAdjustTexSize(width, height). In GLTexFromPixmap width and height are correct, the moment we get into GLAdjustTexSize width and height are both 0. WTF? Passing a variable comes out 0? And just for me?
|