[Mesa-dev] [Bug 105807] [Regression, bisected]: 3D Rendering not working correctly in Warhammer 40k: Dawn of War II

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Apr 11 20:08:40 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=105807

--- Comment #15 from ben at besd.de <ben at besd.de> ---
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));
    }
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180411/0ab69d19/attachment-0001.html>


More information about the mesa-dev mailing list