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 1dbb12ecfe0cd54fb2fcd27c49160add62f47286..796d62f2b94d2b636a2fee193cebd3d912cda471 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;
    }