Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#15 No line drawing on DX9 with Intel HD 4000

1.7
open
nobody
None
2013-12-05
2013-12-05
Aliasbinman
No

No lines are drawn on my Macbook pro which has a intel HD4000 GPU when using DX9. SDL, OGL and DX10 are fine.

I fixed the issue by setting the w component to 1.0f here

void CTwGraphDirect3D9::DrawLine(int _X0, int _Y0, int _X1, int _Y1, color32 _Color0, color32 _Color1, bool _AntiAliased)

p[0].m_Pos[3] = 1.0f;

and
p[1].m_Pos[3] = 1.0f;

Discussion