Fix build on 32bit platforms

error: invalid cast from type ‘uintptr_t’ {aka ‘unsigned int’} to type ‘EGLNativeWindowType’ {aka ‘long unsigned int’}
This commit is contained in:
Fabian Vogt 2021-09-16 18:50:35 +02:00 committed by Vlad Zahorodnii
parent a7a515a0af
commit e26ea6bf23

View file

@ -214,7 +214,7 @@ EGLSurface EglOnXBackend::createSurface(xcb_window_t window)
}
// Window is 64 bits on a 64-bit architecture whereas xcb_window_t is always 32 bits.
uintptr_t nativeWindow = window;
Window nativeWindow = window;
EGLSurface surface = EGL_NO_SURFACE;
if (havePlatformBase()) {