OpenGLInsights / OpenGLInsightsCode

Source code for OpenGL Insights
653 stars 229 forks source link

Chapter 21: shaders use 4.2's binding but #version number's are 330 #2

Open dcbishop opened 12 years ago

dcbishop commented 12 years ago

They don't compile for me on the latest nvidia drivers under linux:

0(7) : error C7532: layout qualifier 'binding' requires "#version 420" or later 0(7) : error C0000: ... or #extension GL_ARB_shading_language_420pack : enable

Changing the version numbers to 420 fixes it.