Remove useless cast in DXX_USE_OGLES path in ogl_init_window
This triggers a diagnostic from -Wuseless-cast. It appears to be unnecessary, after tracing down typedefs. It might need to be restored if some platform uses a definition that is neither the same type nor implicitly convertible.
This commit is contained in:
parent
93e98ae71a
commit
157ec66668
|
@ -454,7 +454,7 @@ static int ogl_init_window(int w, int h)
|
|||
#ifdef RPI
|
||||
eglSurface = eglCreateWindowSurface(eglDisplay, eglConfig, static_cast<EGLNativeWindowType>(&nativewindow), winAttribs);
|
||||
#else
|
||||
eglSurface = eglCreateWindowSurface(eglDisplay, eglConfig, static_cast<NativeWindowType>(x11Window), winAttribs);
|
||||
eglSurface = eglCreateWindowSurface(eglDisplay, eglConfig, x11Window, winAttribs);
|
||||
#endif
|
||||
if ((!TestEGLError("eglCreateWindowSurface")) || eglSurface == EGL_NO_SURFACE) {
|
||||
con_printf(CON_URGENT, "EGL: Error creating window surface");
|
||||
|
|
Loading…
Reference in a new issue