gpu: Don't mess up color states

When uploading textures, we were unintentionally converting to
srgb. Avoid that, so that yuv data survives unmolested.
This commit is contained in:
Matthias Clasen 2024-07-26 17:33:48 -04:00
parent 45c5b250b9
commit e2d337740f

View File

@ -249,6 +249,7 @@ gsk_gpu_upload_texture_op_draw (GskGpuOp *op,
downloader = gdk_texture_downloader_new (self->texture);
gdk_texture_downloader_set_format (downloader, gsk_gpu_image_get_format (self->image));
gdk_texture_downloader_set_color_state (downloader, gdk_texture_get_color_state (self->texture));
gdk_texture_downloader_download_into (downloader, data, stride);
gdk_texture_downloader_free (downloader);
}