Small pixel format transform improvement and fix
glTexImage2D should swizzle the texture even if data is NULL