OpenGL: Small changes for OpenGL 3.2 core profile context.
OpenGL Fix: sample variable cause problems on some drivers.