[cairo-commit] boilerplate/cairo-boilerplate-egl.c
Chris Wilson
ickle at kemper.freedesktop.org
Mon Mar 19 04:02:08 PDT 2012
boilerplate/cairo-boilerplate-egl.c | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 1e4f385dec03083b2453205bf5f4bef25b3af806
Author: Henry (Yu) Song <hsong at sisa.samsung.com>
Date: Tue Mar 13 22:06:46 2012 +0000
boilerplate/gl: set width and height to be at least 1
diff --git a/boilerplate/cairo-boilerplate-egl.c b/boilerplate/cairo-boilerplate-egl.c
index ce0aceb..e1a46e4 100644
--- a/boilerplate/cairo-boilerplate-egl.c
+++ b/boilerplate/cairo-boilerplate-egl.c
@@ -131,6 +131,11 @@ _cairo_boilerplate_egl_create_surface (const char *name,
gltc->device = cairo_egl_device_create (gltc->dpy, gltc->ctx);
+ if (width < 1)
+ width = 1;
+ if (height < 1)
+ height = 1;
+
gltc->surface = surface = cairo_gl_surface_create (gltc->device,
content,
ceil (width),
More information about the cairo-commit
mailing list