<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [Regression, bisected]: 3D Rendering not working correctly in Warhammer 40k: Dawn of War II"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105807#c11">Comment # 11</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [Regression, bisected]: 3D Rendering not working correctly in Warhammer 40k: Dawn of War II"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105807">bug 105807</a>
from <span class="vcard"><a class="email" href="mailto:ben@besd.de" title="ben@besd.de <ben@besd.de>"> <span class="fn">ben@besd.de</span></a>
</span></b>
<pre>I think this function is the problem:
/**
* Return the string for a glGetString(GL_SHADING_LANGUAGE_VERSION) query.
*/
static const GLubyte *
shading_language_version(struct gl_context *ctx)
{
switch (ctx->API) {
case API_OPENGL_COMPAT:
case API_OPENGL_CORE:
switch (ctx->Const.GLSLVersion) {
case 120:
return (const GLubyte *) "1.20";
case 130:
return (const GLubyte *) "1.30";
case 140:
return (const GLubyte *) "1.40";
case 150:
return (const GLubyte *) "1.50";
case 330:
return (const GLubyte *) "3.30";
case 400:
return (const GLubyte *) "4.00";
case 410:
return (const GLubyte *) "4.10";
case 420:
return (const GLubyte *) "4.20";
case 430:
return (const GLubyte *) "4.30";
case 440:
return (const GLubyte *) "4.40";
case 450:
return (const GLubyte *) "4.50";
case 460:
return (const GLubyte *) "4.60";
default:
_mesa_problem(ctx,
"Invalid GLSL version in shading_language_version()");
return (const GLubyte *) 0;
}
break;
case API_OPENGLES2:
switch (ctx->Version) {
case 20:
return (const GLubyte *) "OpenGL ES GLSL ES 1.0.16";
case 30:
return (const GLubyte *) "OpenGL ES GLSL ES 3.00";
case 31:
return (const GLubyte *) "OpenGL ES GLSL ES 3.10";
case 32:
return (const GLubyte *) "OpenGL ES GLSL ES 3.20";
default:
_mesa_problem(ctx,
"Invalid OpenGL ES version in
shading_language_version()");
return (const GLubyte *) 0;
}
case API_OPENGLES:
/* fall-through */
default:
_mesa_problem(ctx, "Unexpected API value in shading_language_version()");
return (const GLubyte *) 0;
}
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>