bug TextureOutput
Posted: Wed Aug 19, 2020 9:10 pm
TextureOutput is behaving strangely:
under directx
the following program crash
but if I put "StopDrawing()"
after the first call to "TextureOutput,"
no crash
under opengl, even weirder:
here, the dimensions of the texture are not a power of 2
but if I put a power of 2( CreateTexture(0,256,256), no crashing
tested with PB 5.72(x64)
under directx
the following program crash
Code: Select all
InitEngine3D():InitSprite():InitKeyboard():InitMouse()
OpenWindow(0, 0, 0, 0,0, "",#PB_Window_Maximize)
OpenWindowedScreen(WindowID(0), 0, 0, 800,600, 0, 0, 0)
CreateTexture(0,256,256)
Debug TextureOutput(0)
;StopDrawing()
Debug TextureOutput(0)
after the first call to "TextureOutput,"
no crash
under opengl, even weirder:
Code: Select all
InitEngine3D():InitSprite():InitKeyboard():InitMouse()
OpenWindow(0, 0, 0, 0,0, "",#PB_Window_Maximize)
OpenWindowedScreen(WindowID(0), 0, 0, 800,600, 0, 0, 0)
CreateTexture(0,256,256*3)
StartDrawing(TextureOutput(0))
StopDrawing()
Debug TextureOutput(0)
but if I put a power of 2( CreateTexture(0,256,256), no crashing
tested with PB 5.72(x64)