On Wednesday 18 January 2006 01:50, Robert Reif wrote:
> This patch:
> http://www.winehq.org/pipermail/wine-cvs/2006-January/020350.html
> doesn't compile on RH9.
>
> make[2]: Entering directory `/home/wine/wine/dlls/d3d8'
> gcc -c -I. -I. -I../../include -I../../include -I/usr/X11R6/include
> -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe
> -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+
> -Wpointer-arith -g -O2 -o device.o device.c
> device.c: In function `IDirect3DDevice8Impl_SetRenderState':
> device.c:3087: `GL_ARB_point_sprite' undeclared (first use in this
> function) device.c:3087: (Each undeclared identifier is reported only once
> device.c:3087: for each function it appears in.)
> device.c:3088: `GL_POINT_SPRITE_ARB' undeclared (first use in this
> function) make[2]: *** [device.o] Error 1
> make[2]: Leaving directory `/home/wine/wine/dlls/d3d8'
I can confirm this on Debian Sarge. From what I've seen by google'ing,
GL_ARB_point_sprite seems to be an OpenGL 1.5 feature. I've attached a patch,
but I'm not sure if the right thing is to check on GL_VERSION_1_5 or on
GL_ARB_point_sprite.
Bye,
--
Michael Jung
[EMAIL PROTECTED]
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -3084,17 +3084,23 @@ HRESULT WINAPI IDirect3DDevice8Impl_Se
case D3DRS_POINTSPRITEENABLE :
{
if(Value) {
+#if defined(GL_ARB_point_sprite)
if(GL_SUPPORT(GL_ARB_point_sprite)) {
glEnable(GL_POINT_SPRITE_ARB);
checkGLcall("glEnable GL_POINT_SPRITE_ARB");
- } else {
+ } else
+#endif
+ {
TRACE("Point sprites cannot be enabled in this version of opengl\n");
}
} else {
+#if defined(GL_ARB_point_sprite)
if(GL_SUPPORT(GL_ARB_point_sprite)) {
glDisable(GL_POINT_SPRITE_ARB);
checkGLcall("glDisable GL_POINT_SPRITE_ARB");
- } else {
+ } else
+#endif
+ {
TRACE("Point sprites cannot be disabled in this version of opengl\n");
}
}