Using GL_RED as texture type instead of deprecated GL_ALPHA which is unsupported in core GL.