From ecacc1ebcba65e5805b942155c54b92d65f1798f Mon Sep 17 00:00:00 2001 From: Vitaly Budovski Date: Sat, 4 Feb 2006 17:14:13 +0100 Subject: [PATCH] d3d8: Fixed POINTSPRITEENABLE. --- dlls/d3d8/device.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c index 9786a0df17..ffa18a5d27 100644 --- a/dlls/d3d8/device.c +++ b/dlls/d3d8/device.c @@ -3095,12 +3095,18 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetRenderState(LPDIRECT3DDEVICE8 iface, D3 break; } + /* + * Point sprites are always enabled. Value controls texture coordinate + * replacement mode. Must be set true for point sprites to use + * textures. + */ + glEnable(GL_POINT_SPRITE_ARB); + checkGLcall("glEnable GL_POINT_SPRITE_ARB"); + if (Value) { - glEnable(GL_POINT_SPRITE_ARB); - checkGLcall("glEnable GL_POINT_SPRITE_ARB"); + glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, TRUE); } else { - glDisable(GL_POINT_SPRITE_ARB); - checkGLcall("glDisable GL_POINT_SPRITE_ARB"); + glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, FALSE); } break; }