egl/haiku: drop overwritten preset of EGL version
authorEric Engestrom <eric@engestrom.ch>
Wed, 29 Jul 2020 14:57:33 +0000 (16:57 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 1 Aug 2020 17:31:33 +0000 (17:31 +0000)
`init_haiku()` is called by `eglInitialize()`, which then calls
`_eglComputeVersion()` (without even anything in between). The latter
sets the EGL version based on the extensions supported, and since Haiku
doesn't support any it will end up overwriting the same `1.4` value.

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6131>

src/egl/drivers/haiku/egl_haiku.cpp

index 48f0848629e35a8e268294531e0805534e721653..323907f86d4bb5f3d98cd213b8b697f1f2e4d35b 100644 (file)
@@ -221,8 +221,6 @@ init_haiku(const _EGLDriver *drv, _EGLDisplay *disp)
        if (!haiku_add_configs_for_visuals(disp))
                return EGL_FALSE;
 
-       disp->Version = 14;
-
        TRACE("Initialization finished\n");
 
        return EGL_TRUE;