DerelictGL3.reload() returns wrong (?) GLVersion (GL32, should be 33)

Mike Parker via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Mar 29 07:54:23 PDT 2015


On 3/29/2015 10:26 AM, Koi wrote:
> Hello,
>
> today i implemented OpenGL instancing, and it crashed when calling
> glVertexAttribDivisor (OpenGL 3.3).
>
> So i checked DerelictGL3.reload() and it returned GLVersion.GL32, not GL33.
>
> My graphic card (NVidia GT 240) should support GL33 and an OpenGL
> Extensions Viewer tool confirmed, that it supports OpenGL 3.3 fully.
>
> Did i overlook something?

It isn't reporting what your driver supports, but the version of the 
context that is actually loaded. What do you get when you call 
glGetString(GL_VERSION)?


More information about the Digitalmars-d-learn mailing list