diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-05-30 11:40:48 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-05-30 11:47:08 -0600 |
commit | 274dd381a30072ecb8341cfc41e63bb6e39419ac (patch) | |
tree | 03946ea350345d3461849abc5c3efa28a1991810 /src/egl/main | |
parent | d0de5a2dafb5143f01a3c6dc367c85aa0800466b (diff) |
egl: fix width/height tests
Diffstat (limited to 'src/egl/main')
-rw-r--r-- | src/egl/main/eglsurface.c | 2 |
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; } |