<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#c13">Comment # 13</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>from mesa/main/version.c: (the one above is getstring.c)
int
_mesa_get_shading_language_version(const struct gl_context *ctx,
int index,
char **versionOut)
{
int n = 0;
#define GLSL_VERSION(S) \
if (n++ == index) \
*versionOut = S
/* GLSL core */
if (ctx->Const.GLSLVersion >= 460)
GLSL_VERSION("460");
if (ctx->Const.GLSLVersion >= 450)
GLSL_VERSION("450");
if (ctx->Const.GLSLVersion >= 440)
GLSL_VERSION("440");
if (ctx->Const.GLSLVersion >= 430)
GLSL_VERSION("430");
if (ctx->Const.GLSLVersion >= 420)
GLSL_VERSION("420");
if (ctx->Const.GLSLVersion >= 410)
GLSL_VERSION("410");
if (ctx->Const.GLSLVersion >= 400)
GLSL_VERSION("400");
if (ctx->Const.GLSLVersion >= 330)
GLSL_VERSION("330");
if (ctx->Const.GLSLVersion >= 150)
GLSL_VERSION("150");
if (ctx->Const.GLSLVersion >= 140)
GLSL_VERSION("140");
if (ctx->Const.GLSLVersion >= 130)
GLSL_VERSION("130");
if (ctx->Const.GLSLVersion >= 120)
GLSL_VERSION("120");
/* The GL spec says to return the empty string for GLSL 1.10 */
if (ctx->Const.GLSLVersion >= 110)
GLSL_VERSION("");
/* GLSL es */
if ((ctx->API == API_OPENGLES2 && ctx->Version >= 32) ||
ctx->Extensions.ARB_ES3_2_compatibility)
GLSL_VERSION("320 es");
if (_mesa_is_gles31(ctx) || ctx->Extensions.ARB_ES3_1_compatibility)
GLSL_VERSION("310 es");
if (_mesa_is_gles3(ctx) || ctx->Extensions.ARB_ES3_compatibility)
GLSL_VERSION("300 es");
if (ctx->API == API_OPENGLES2 || ctx->Extensions.ARB_ES2_compatibility)
GLSL_VERSION("100");
#undef GLSL_VERSION
return n;
}</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>