Is there a simple way to test a DX9 driver in BMax

BlitzMax Forums/BlitzMax Programming/Is there a simple way to test a DX9 driver in BMax

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Quick example but it demonstrates the problem perfectly.

With DX7 I get a rotating line at the centre of the screen, and a white square floating across the top.

With DX9 the line isn't drawn, and I only see the lower right tri that makes up half of the rect.

If I uncomment 'SetLineWidth 20', I can see the rotating 'line' again but its a triangle with one point extending from the centre.

Strict

Import "Dx9Max2dDriver\Dx9Max2dGraphicsDriver.bmx"
SetGraphicsDriver D3D9Max2DDriver()

Local lineAngle:Float
Local rect:Int

Graphics 800,600

'SetLineWidth 20

While Not KeyDown(key_escape)
	Cls
		SetColor 255,255,255
		lineAngle:+1
		DrawLine 400,300,Cos(lineAngle) * 100 + 400, Sin(lineAngle) * 100 + 300
		
		rect:+1
		DrawRect rect,0,100,100
	Flip
Wend