]> git.proxmox.com Git - mirror_qemu.git/blobdiff - ui/console-gl.c
block/file-posix: do not fail on unlock bytes
[mirror_qemu.git] / ui / console-gl.c
index 5b77e7aa88cf4bf3877eac4281f554b204096f17..a56e1cd8ebcee46bba4c359111f3e06009562b46 100644 (file)
@@ -48,7 +48,7 @@ void surface_gl_create_texture(QemuGLShader *gls,
                                DisplaySurface *surface)
 {
     assert(gls);
-    assert(surface_stride(surface) % surface_bytes_per_pixel(surface) == 0);
+    assert(QEMU_IS_ALIGNED(surface_stride(surface), surface_bytes_per_pixel(surface)));
 
     switch (surface->format) {
     case PIXMAN_BE_b8g8r8x8: