paroj/gltut

Wrong color assignment in Tutorial 05 source codes

Opened this issue · 0 comments

paroj commented

Originally reported by: Sand3r (Bitbucket: Sand3r, GitHub: Sand3r)


In all .cpp files coming from Tutorial 05, the assignment of colors for blue and green is incorrect, and should be swapped.

Side note: It may seem to be minor bug, but it greatly confused me when I was playing with the code to gain better understanding of indexed buffering.

#define GREEN_COLOR 0.75f, 0.75f, 1.0f, 1.0f
#define BLUE_COLOR  0.0f, 0.5f, 0.0f, 1.0f