Pixmap coordinates out of bounds

BlitzMax Forums/BlitzMax Programming/Pixmap coordinates out of bounds

Is there something we should be aware of? This only occurs when OpenGL is the renderer. It works fine with DirectX.

				For Local i:Int = 0 To num - 1
				
					Local x:Int = f.table[i].rectX
					Local y:Int = f.table[i].rectY
					Local w:Int = f.table[i].rectW
					Local h:Int = f.table[i].rectH
					
					Local pixmap:TPixmap = PixmapWindow( temp , x , y , w , h )
					f.image[i] = LoadImage( pixmap )
					DrawImage f.image[i],0,0
								
				Next	


This is part of some code that loads a bitmap and grabs a series of frames for use as memory. I find its very unreliable also.

Oh yeah - The debugger will not catch the out of bounds error under directx.

Not enough information sorry.

Sure it is not catched? (sure you are not using framework and missed to include the needed module to check array bounds at all)

"When posting bug reports, please:

1) Include some *runnable* source code in your post - not just the bit in your code that's failing, but something we can actually copy and paste into the IDE and run immediately."

Trying...

Just to verify, pixmapwindow creates a new pixmap? and this is a valid technique for making more images?

Hmmm, may have to start deleting threads when topic already exists.