summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-05-30 11:40:48 -0600
committerBrian Paul <[email protected]>2008-05-30 11:47:08 -0600
commit274dd381a30072ecb8341cfc41e63bb6e39419ac (patch)
tree03946ea350345d3461849abc5c3efa28a1991810
parentd0de5a2dafb5143f01a3c6dc367c85aa0800466b (diff)
egl: fix width/height tests
-rw-r--r--src/egl/main/eglsurface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/eglsurface.c b/src/egl/main/eglsurface.c
index 1dbb12ecfe0..796d62f2b94 100644
--- a/src/egl/main/eglsurface.c
+++ b/src/egl/main/eglsurface.c
@@ -175,7 +175,7 @@ _eglInitSurface(_EGLDriver *drv, EGLDisplay dpy,
}
}
- if (width <= 0 || height <= 0) {
+ if (width < 0 || height < 0) {
_eglError(EGL_BAD_ATTRIBUTE, func);
return EGL_FALSE;
}