[BRL.DXGraphics] D3D9 depth and stencil support
BlitzMax Forums/BlitzMax Module Tweaks/[BRL.DXGraphics] D3D9 depth and stencil support
| ||
This tweak addresses the lack of depth/stencil support for the D3D9 driver. The following code needs to be added into "OpenD3DDevice" function of brl.mod/dxgraphics.mod/d3d9graphics.bmx after pp:D3DPRESENT_PARAMETERS is defined. I am fairly confident that fix works effectively (it is in use in MaxB3D, and is extensive as it checks every depth/stencil flag defined in D3DFORMAT. In addition, it certainly will not break anything dependent on BRL.DXGraphics as no one currently can use depth/stencil buffers anyway. |