openglsuperbible / sb7code

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

Calls to glUniform*() wrongly assume uniform variable is at location 0 #7

Open georgeraraujo opened 9 years ago

georgeraraujo commented 9 years ago

These changes fix problems on 4 of the examples (see below) with the following hardware & drivers on Windows 8.1 Pro x64:

hdrexposure

ktxview

tesssubdivmodes

wrapmodes

Wrong: wrapmodes_location0 Right: wrapmodes_glgetuniformlocation

mattgruenke commented 6 years ago

Thanks for this.

BTW, in my fork, I'm porting these examples to use OGLplus.