I tested my game with the new components on two pcs. When running in fullscreen mode in Direct3D it seems that Antialias is turned off.
But when I press "Alt+Tab" to switch back to windows and return to the game antialias works.
Am I doing something wrong or is this a bug ?
Here is the main code of my inititialization:
[pascal]
m_oPowerDraw := TPowerDraw.Create(AOwner);
m_oImageList := TAsphyreImages.Create(AOwner);
m_oPowerDraw.Images:= m_oImageList;
m_oPowerDraw.Width := p_iScreenX;
m_oPowerDraw.Height := p_iScreenY;
m_oPowerDraw.Windowed := p_bWindowed;
m_oPowerDraw.Mode:= rmDirect3D;
m_oPowerDraw.VSync := p_bVSync;
m_oPowerDraw.BitDepth := bd16bit;
if m_oPowerDraw.VSync then
m_oPowerDraw.BackBufferCount:= 2;
Result := m_oPowerDraw.Initialize();
if (Result <> 0) then
begin
Exit;
end;
Result:= m_oPowerDraw.InitDevice();
if (Result <> 0) then
begin
Exit;
end;
[/pascal]
But sometimes antialias works when I start the game(1 of 5 times).