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

--- Comment #15 from b...@besd.de <b...@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.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to