<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#c15">Comment # 15</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'm probably too tired, but this should work I think except it doesnt.
// Little test program to dump supported shader versions
// compiled like this
// gcc test.c -I/usr/include/GL/ -L/usr/lib/x86_64-linux-gnu -lglut -lGLU -lGL
-lGLEW -o test
#include "glew.h"
#include "glut.h"
#include <GL/glcorearb.h>
#include <stdio.h>
int main(int argc, char **argv)
{
glutInit(&argc, argv);
glutCreateWindow("GLUT");
glewInit();
printf("OpenGL version supported by this platform (%s): \n",
glGetString(GL_VERSION));
int num_glsls = 0;
glGetIntegerv(GL_NUM_SHADING_LANGUAGE_VERSIONS, &num_glsls);
// supposed to be at least 3 according to page 617 of the OpenGL 4.5 core spec
// currently seems to be 0
printf("GLSL versions supported by this platform: %d", num_glsls);
// this doesnt do anything even though it should
for (int i = 0; i++; i < num_glsls) {
printf("OpenGLSL versions supported by this platform (%s): \n",
glGetStringi(GL_SHADING_LANGUAGE_VERSION, 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>