--- Comment #15 from <> ---
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);

    printf("OpenGL version supported by this platform (%s): \n",

    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

Reply via email to