On a Mobility Radeon, the polygon in the following is not seen, only when removing the three DrawingBuffer lines...
On other graphic cards I did not have this effect, so I don't know if I wrote some wrong code, it's a hardware or software bug?!
Code: Select all
Global Dim Polygon(8)
InitSprite()
win=OpenWindow(1,0,0,600,600,"3D-View",#PB_Window_ScreenCentered|#PB_Window_BorderLess)
OpenWindowedScreen(win,0,0,600,600,0,0,0)
polygon(0)=0
polygon(1)=0
polygon(2)=500
polygon(3)=0
polygon(4)=500
polygon(5)=500
polygon(6)=0
polygon(7)=500
Repeat
windc=StartDrawing(ScreenOutput())
DxMem=DrawingBuffer()
DxMul=DrawingBufferPitch()
DxPix=DrawingBufferPixelFormat()
DrawingMode(#PB_2DDrawing_Transparent)
winbrush=CreateSolidBrush_($ffff)
SelectObject_(windc,winbrush)
Polygon_(windc,@Polygon(),4)
DeleteObject_(winbrush)
StopDrawing()
FlipBuffers()
Until WaitWindowEvent(10) = #WM_CHAR