skaslev / gl3w

Simple OpenGL core profile loading
http://github.com/skaslev/gl3w
The Unlicense
709 stars 160 forks source link

gl3w falsely reports OpenGL 3.3 is not supported #65

Open BryanHaley opened 4 years ago

BryanHaley commented 4 years ago

System information: VMWare Player with 3D Acceleration Manjaro Linux as Guest OS, Windows 10 as Host OS (GTX 1660 Ti GPU) glxinfo in guest OS:

server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Max core profile version: 3.3
    Max compat profile version: 3.3
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 2.0
OpenGL core profile version string: 3.3 (Core Profile) Mesa 20.0.7
OpenGL core profile shading language version string: 3.30
OpenGL version string: 3.3 (Compatibility Profile) Mesa 20.0.7
OpenGL shading language version string: 3.30
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 20.0.7
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16

Using gl3wIsSupported(3, 3) returns 0. However, OpenGL 3.3 works fine, and I am able to create an OpenGL 3.3 context with GLFW and use the functions provided by gl3w to render to it.

skaslev commented 4 years ago

Interesting. What does this:

    int major, minor;
    glGetIntegerv(GL_MAJOR_VERSION, &major);
    glGetIntegerv(GL_MINOR_VERSION, &minor);
    printf("%d.%d\n", major, minor);

output?

BryanHaley commented 4 years ago

3.3

BryanHaley commented 4 years ago

Just checked on macOS. It also falsely reports 3.3 is not available despite being able to use 3.3 in that application. (MacBook Pro 2015 with Intel Iris Pro, Mojave 10.14.6). Don't have access to Windows atm to test there but I wonder if this is a universal issue.