Card supports OpenGL 4.1 but no GL4 implementation on thread?

前端 未结 2 1445
旧时难觅i
旧时难觅i 2021-01-22 11:53

When I run my test JOGL app, it says that I only have GL2 available on the thread when my system supports up to OpenGL 4.1 according to the OpenGl Extensions Vi

2条回答
  •  太阳男子
    2021-01-22 12:39

    For running the book's examples on a Mac, I have placed instructions on this website: http://athena.ecs.csus.edu/~gordonvs/errataMac.html

    In summary, you need to:

    • make sure you've installed the latest Java SE
    • place the relevant JOGL libraries into System/Library/Java/Extensions (the particular ones required are listed in the above website)
    • add the code described above by Julien (thanks!)
    • change the version numbers on the shaders to 410 (or whatever your Mac supports)
    • in the examples that use textures, replace the binding layout qualifiers in the shaders to appropriate calls to glUniform1i() in the Java application (for compatibility with version 4.1)

    If more idiosyncrasies are identified, I'll add them to the instructions in the website.

提交回复
热议问题