In gl_texture_image replace IntFormat with InternalFormat and Format with