GLTexture PixImage::uploadTexture() const { GLTexture tex; tex.TexImage2D(GL_RGBA, m_size, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, &m_data[0]); return tex; }