[not a bug]warning C7506

Bugs that have been resolved.

Moderator: Graf Zahl

User avatar
Enjay
Developer
Developer
Posts: 4753
Joined: Tue Aug 30, 2005 23:19
Location: Scotland

[not a bug]warning C7506

Post by Enjay »

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
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany

Post by Graf Zahl »

That is caused by compiling the fragment shader for radial fog. The function should exist. What graphics card do you have?

Since that isn't used at the moment and even if it were used it would only mean that the shader would be deactivated, I'll classify it as 'not a bug'.
User avatar
Enjay
Developer
Developer
Posts: 4753
Joined: Tue Aug 30, 2005 23:19
Location: Scotland

Post by Enjay »

Graf Zahl wrote:What graphics card do you have?
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.

http://www.nvidia.com/object/winxp_2k_81.85.html
User avatar
TheDarkArchon
Posts: 1000
Joined: Wed Jul 06, 2005 11:58
Location: What's that fucking smell

Post by TheDarkArchon »

Doesn't appear with the previous driver (78.01) on my old GeForce 2 card.
User avatar
Enjay
Developer
Developer
Posts: 4753
Joined: Tue Aug 30, 2005 23:19
Location: Scotland

Post by Enjay »

Yeah, I just switched back to 78.01 and the message has gone. Unfortunately, I don't really know enough about this stuff to make a reliable bug report to NVidia.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany

Post by Graf Zahl »

Post it along with this code:

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);"
	"}"
;
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.
User avatar
Enjay
Developer
Developer
Posts: 4753
Joined: Tue Aug 30, 2005 23:19
Location: Scotland

Post by Enjay »

OK, I've posted a bug report and the code over at the NVidia Forums. Reading through those forums, there appear to be a number of other issues with the driver too.

Return to “Closed Bugs”