Vitaly Budovski : d3d8: Fixed POINTSPRITEENABLE.
Alexandre Julliard
julliard at wine.codeweavers.com
Sat Feb 4 11:15:05 CST 2006
Module: wine
Branch: refs/heads/master
Commit: ecacc1ebcba65e5805b942155c54b92d65f1798f
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=ecacc1ebcba65e5805b942155c54b92d65f1798f
Author: Vitaly Budovski <vbudovsk at cs.rmit.edu.au>
Date: Sat Feb 4 17:14:13 2006 +0100
d3d8: Fixed POINTSPRITEENABLE.
---
dlls/d3d8/device.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index 9786a0d..ffa18a5 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -3095,12 +3095,18 @@ HRESULT WINAPI IDirect3DDevice8Impl_Se
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;
}
More information about the wine-cvs
mailing list