Added glsl 1.2 support, using libpng