How to check the Version of the OpenGL on Windows 7kl

后端 未结 4 713
傲寒
傲寒 2021-01-03 05:42

I am using the Windows 7. I am programming using the OpenGL on it. But I found that there are some features I can use. So I want to check the version of the OpenGL on my sys

4条回答
  •  长情又很酷
    2021-01-03 06:25

    You need a GL context current before you can ask which version you have.

    So first, create a context, call wglMakeCurrent on it, and you should be able to call glGetString after that.

    The version that gets reported is coming from the driver that you have installed. The OpenGL version that your hardware can support is not itself "upgradable" (because some hardware features will be missing to support the latest and greatest).

    So the best you can do is upgrade your driver, but don't get your hopes to high it will result in a newer OpenGL.

提交回复
热议问题