Pixmaps and DirectX

BlitzMax Forums/BlitzMax Bug Reports/Pixmaps and DirectX

The following example gives a blank screen with the PF_RGBA8888 format and using the D3D7Max2DDriver(), using PF_BGRA8888 or GLMax2DDriver() works as expected.
'SetGraphicsDriver GLMax2DDriver()
SetGraphicsDriver D3D7Max2DDriver()

Const Pixfmt=PF_RGBA8888 ' doesn't work in D3D7Max2DDriver()
'Const Pixfmt=PF_BGRA8888

Graphics 640, 480,32

Global pmap:TPixmap = CreatePixmap(100, 100, pixfmt) 
For x = 0 To 99
For y = 0 To 99
WritePixel(pmap, x, y, $ff0080ff) 
Next
Next

DrawPixmap pmap, 0, 0

Flip
WaitKey
End


I've always a blue box at the top-left on a black screen in every 4 combinations of (dx / open gl driver, const RGBA / BGRA)

Yeah same what degac says, nothing wrong here. Win XP sp2, ati radeon x1600, etc...

I modifed the example from this post http://www.blitzbasic.com/Community/posts.php?topic=74077#827623