mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-11 13:10:07 +00:00
gpu: Add more assertions to blitop
The blitop is nasty, so we should make sure we have supported images when using it.
This commit is contained in:
parent
2fef71da5c
commit
b3d044a0b1
@ -210,6 +210,8 @@ gsk_gpu_blit_op (GskGpuFrame *frame,
|
||||
GskGpuBlitOp *self;
|
||||
|
||||
g_assert ((gsk_gpu_image_get_flags (src_image) & GSK_GPU_IMAGE_NO_BLIT) == 0);
|
||||
g_assert (filter != GSK_GPU_BLIT_LINEAR || (gsk_gpu_image_get_flags (src_image) & GSK_GPU_IMAGE_FILTERABLE) == GSK_GPU_IMAGE_FILTERABLE);
|
||||
g_assert ((gsk_gpu_image_get_flags (dest_image) & GSK_GPU_IMAGE_RENDERABLE) == GSK_GPU_IMAGE_RENDERABLE);
|
||||
|
||||
self = (GskGpuBlitOp *) gsk_gpu_op_alloc (frame, &GSK_GPU_BLIT_OP_CLASS);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user