openglsuperbible / sb7code

Source code and supporting material for the 7th Edition of OpenGL SuperBible
727 stars 251 forks source link

OpenGL 4.1? #36

Open Veronika-Kot opened 5 years ago

Veronika-Kot commented 5 years ago

Hi There,

Do the provided examples work with OpenGL 4.1 drivers? I can build a project, but when I run .exe file nothing happens.

Thank you.

cortreeze commented 5 years ago

Hi, Veronika In examples 4.3 used by default. You can override minor version by putting info.minorVersion = 1; after sb7::application::init() call in your void init(). Or simply make changes in sb7::application::init(), so they will affect all of your projects. Some features will not be available (e.g. Compute Shaders were introduced in 4.3). But I think this will fix most of the examples.