gsk: Don't try to upload NULL images

It doesn't work. Just return NULL and let the caller handle it,
like we do in other cases where obtaining an image fails.
This commit is contained in:
Matthias Clasen
2024-01-10 22:44:30 -05:00
parent fe95da256b
commit 8d74defbc1

View File

@@ -681,7 +681,10 @@ gsk_gpu_device_lookup_glyph_image (GskGpuDevice *self,
}
else
{
image = gsk_gpu_device_create_upload_image (self, FALSE, GDK_MEMORY_DEFAULT, rect.size.width, rect.size.height),
image = gsk_gpu_device_create_upload_image (self, FALSE, GDK_MEMORY_DEFAULT, rect.size.width, rect.size.height);
if (!image)
return NULL;
rect.origin.x = 0;
rect.origin.y = 0;
padding = 0;