Merge branch 'gallium-tex-surfaces' into gallium-0.1
[mesa.git] / 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;
    }