egl: fix width/height tests
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 30 May 2008 17:40:48 +0000 (11:40 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 30 May 2008 17:47:08 +0000 (11:47 -0600)
src/egl/main/eglsurface.c

index 1dbb12e..796d62f 100644 (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;
    }