egl: fix width/height tests

This commit is contained in:
Brian Paul 2008-05-30 11:40:48 -06:00
parent d0de5a2daf
commit 274dd381a3
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}