screenoutput() and 3D screen

All bugs related to the 3D engine
Azur
User
User
Posts: 63
Joined: Sat Jan 28, 2012 11:13 am

screenoutput() and 3D screen

Post by Azur »

Hello, i don't know if it has allready been reported.
Trying a output on a 3D screen cause crash on v5 b5

Code: Select all

EnableExplicit
InitEngine3D() ;********** comment this line **************
InitSprite()
OpenWindow(0,0,0,1024,768,"")
OpenWindowedScreen(WindowID(0),0,0,1024,768,1,0,0)
Repeat
	Define ev=WaitWindowEvent(20)
	Select ev
		Case #PB_Event_CloseWindow
			End
	EndSelect
	StartDrawing(ScreenOutput())
		DrawText(0,0,"Hello World")
	StopDrawing()
	FlipBuffers()
ForEver
User avatar
Programie
User
User
Posts: 25
Joined: Thu Aug 09, 2007 11:26 am
Location: Gernsbach (Germany)
Contact:

Re: screenoutput() and 3D screen

Post by Programie »

I've the same problem on Windows with DirectX. Using OpenGL as subsystem or compiling the same code on Linux works fine.

Tested with the latest PureBasic release (5.73).
ImageImageImageImage
Fred
Administrator
Administrator
Posts: 16619
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: screenoutput() and 3D screen

Post by Fred »

You should use OpenGL when using the 3D engine. We might remove DX support altoghether from it, as it's too complicated to handle shaders for both DX and OpenGL
Post Reply