Avoid converting images when updating GLTexture
In GLTexture::update, reuse the mechanism from the GLTexture(QImage, ...) constructor to upload QImage data directly when the QImage format has compatible GL format and type codes. Before this change, all QImage formats other than ARGB32_Premultiplied required a format conversion.
parent
9be35133
Please register or sign in to comment