TheCBProject / CodeChickenLib

GNU Lesser General Public License v2.1
110 stars 55 forks source link

Remove usages of OpenGLUtils from shader pipeline to allow more recent features than 3.2 #412

Closed KitsuneAlex closed 1 year ago

KitsuneAlex commented 1 year ago

As the title says. The CCL shader pipeline causes crashes all over the place because the old #init() function could only detect up to OpenGL 3.2, since that's the hardcoded core profile version of the GLFW window as of 1.18.2. This fixes that issue by "properly" probing the GPU for it's maximum supported OpenGL version, by removing any usage of OpenGLUtils from the shader pipeline since we can still use more recent GL features than 3.2 due to upwards compatibility.