Commit b042f4e7 by Nicolas Caramelli

EGL_KHR_platform_x11: wrong implementation in CreatePlatformWindowSurface()

Bug: b/168821209 Change-Id: I1892581045ec37abc4060cf4de2c45cb2fb6208a Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/48568 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Tested-by: 's avatarNicolas Caramelli <caramelli.devel@gmail.com>
parent 08596c4c
......@@ -361,6 +361,10 @@ EGLSurface EGLAPIENTRY CreatePlatformWindowSurface(EGLDisplay dpy, EGLConfig con
return EGL_NO_SURFACE;
}
#if defined(USE_X11)
native_window = (void *)(*(::Window*)native_window);
#endif
if(!display->isValidWindow((EGLNativeWindowType)native_window))
{
return error(EGL_BAD_NATIVE_WINDOW, EGL_NO_SURFACE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment