Henri Verbeet : wined3d: D3DRS_POINTSIZE_MIN is initially 0.0f for d3d8.

Alexandre Julliard julliard at winehq.org
Mon Dec 29 08:47:55 CST 2008


Module: wine
Branch: master
Commit: 29b826b39eb3b5ebc051d063e632c8c840f8181e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=29b826b39eb3b5ebc051d063e632c8c840f8181e

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon Dec 29 09:14:29 2008 +0100

wined3d: D3DRS_POINTSIZE_MIN is initially 0.0f for d3d8.

---

 dlls/wined3d/stateblock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c
index 27a4d50..f89759b 100644
--- a/dlls/wined3d/stateblock.c
+++ b/dlls/wined3d/stateblock.c
@@ -1107,7 +1107,7 @@ static HRESULT  WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat
     IWineD3DDevice_SetRenderState(device, WINED3DRS_SOFTWAREVERTEXPROCESSING, FALSE);
     tmpfloat.f = 1.0f;
     IWineD3DDevice_SetRenderState(device, WINED3DRS_POINTSIZE,                tmpfloat.d);
-    tmpfloat.f = 1.0f;
+    tmpfloat.f = ((IWineD3DImpl *)This->wineD3DDevice->wineD3D)->dxVersion < 9 ? 0.0f : 1.0f;
     IWineD3DDevice_SetRenderState(device, WINED3DRS_POINTSIZE_MIN,            tmpfloat.d);
     IWineD3DDevice_SetRenderState(device, WINED3DRS_POINTSPRITEENABLE,        FALSE);
     IWineD3DDevice_SetRenderState(device, WINED3DRS_POINTSCALEENABLE,         FALSE);




More information about the wine-cvs mailing list