[Mesa-dev] EGL FBDEV platform broken by commit 91ff0d4c6510dc38f279c586ced17fba917873e7
Peter Hanzel
hanzelpeter at gmail.com
Tue Jul 15 03:02:42 PDT 2014
Hello.
I am using Mesa with EGL platform FBDEV. In this setup the
native_window is always NULL.
It worked good, but after update to new version of Mesa it shows error
in creating EGLsurface.
I tracked it down to commit 91ff0d4c6510dc38f279c586ced17fba917873e7
egl: Check for NULL native_window in eglCreateWindowSurface
where this is added:
@@ -571,6 +571,10 @@ _eglCreateWindowSurfaceCommon(_EGLDisplay *disp,
EGLConfig config,
EGLSurface ret;
_EGL_CHECK_CONFIG(disp, conf, EGL_NO_SURFACE, drv);
+
+ if (native_window == NULL)
+ RETURN_EGL_ERROR(disp, EGL_BAD_NATIVE_WINDOW, EGL_NO_SURFACE);
+
So when native_window is NULL it returns error. I commented that if
out. then my rotating cube works again.
Is the EGL FBDEV platform supported? How should the change be to work
with NULL native_window in fbdev.
Thanks.
More information about the mesa-dev
mailing list