summaryrefslogtreecommitdiffstats
path: root/src/egl
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/egl
parentd0de5a2dafb5143f01a3c6dc367c85aa0800466b (diff)
downloadexternal_mesa3d-274dd381a30072ecb8341cfc41e63bb6e39419ac.zip
external_mesa3d-274dd381a30072ecb8341cfc41e63bb6e39419ac.tar.gz
external_mesa3d-274dd381a30072ecb8341cfc41e63bb6e39419ac.tar.bz2
egl: fix width/height tests
Diffstat (limited to 'src/egl')
-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 1dbb12e..796d62f 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;
}