egl: fix width/height tests
This commit is contained in:
parent
d0de5a2daf
commit
274dd381a3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue