summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-05-30 11:40:48 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-05-30 11:47:08 -0600
commit274dd381a30072ecb8341cfc41e63bb6e39419ac (patch)
tree03946ea350345d3461849abc5c3efa28a1991810 /src
parentd0de5a2dafb5143f01a3c6dc367c85aa0800466b (diff)
egl: fix width/height tests
Diffstat (limited to 'src')
-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 1dbb12ecfe..796d62f2b9 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;
}