Don't know if this is actually a bug, but I just noticed that this is getting printed to the console when I start GZDoom.
(1) : warning C7506: OpenGL does not define the global function exp
[not a bug]warning C7506
Moderator: Graf Zahl
-
- Developer
- Posts: 4753
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
-
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
-
- Developer
- Posts: 4753
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
GeForce FX 5900XT. I have to say that I had never noticed the message before yesterday (which doesn't mean that it wasn't there - perhaps I was just unobservant - but I don't think it was there). I upgraded my drivers yesterday. I'm now using the ones that come in the file 81.85_forceware_winxp2k_english_whql.exe - downloaded from the NVidia site yesterday.Graf Zahl wrote:What graphics card do you have?
http://www.nvidia.com/object/winxp_2k_81.85.html
-
- Posts: 1000
- Joined: Wed Jul 06, 2005 11:58
- Location: What's that fucking smell
-
- Developer
- Posts: 4753
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
-
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
Post it along with this code:
and tell them the error message. It's good to know though that the new driver apparently is buggy so I'll skip it for now.
Code: Select all
static const char * vshader=
"varying vec4 position;"
"void main()"
"{"
"gl_BackColor = gl_FrontColor = gl_Color;"
"gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;"
"gl_Position = position = ftransform();"
"}"
;
static const char * fshader=
"varying vec4 position;"
"uniform vec3 fogcolor;"
"uniform float fogdensity;"
"uniform vec3 camera;"
"uniform sampler2D tex;"
"void main()"
"{"
"vec4 texel = texture2D(tex,gl_TexCoord[0].st) * gl_Color;"
"float factor = exp ( -fogdensity * distance(position.xyz, camera));"
"vec3 fogged = mix (fogcolor, texel.rgb, factor);"
"gl_FragColor = vec4(fogged, texel.a);"
"}"
;
-
- Developer
- Posts: 4753
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland