[gtk/win32-check-shader-support] GDK-Win32: Remove check for shader support in GLES
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/win32-check-shader-support] GDK-Win32: Remove check for shader support in GLES
- Date: Tue, 17 Aug 2021 08:15:38 +0000 (UTC)
commit 28075f86b1219aa8c5b787435fd817271379b682
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Aug 17 16:11:07 2021 +0800
GDK-Win32: Remove check for shader support in GLES
We are forcing the use of OpenGL/ES 3.0 anyways, and thus we should definitely
have shader support, so drop the check as it's not necessary.
gdk/win32/gdkglcontext-win32-egl.c | 16 ----------------
1 file changed, 16 deletions(-)
---
diff --git a/gdk/win32/gdkglcontext-win32-egl.c b/gdk/win32/gdkglcontext-win32-egl.c
index 338f81ff70..cfc4417a9a 100644
--- a/gdk/win32/gdkglcontext-win32-egl.c
+++ b/gdk/win32/gdkglcontext-win32-egl.c
@@ -279,22 +279,6 @@ gdk_win32_display_init_egl (GdkDisplay *display,
eglBindAPI (EGL_OPENGL_ES_API);
- /* We must have OpenGL/ES 2.0 or later, or have the GL_ARB_shader_objects extension */
- if (display_win32->egl_version < 20)
- {
- if (!epoxy_has_egl_extension (egl_disp, "GL_ARB_shader_objects"))
- {
- eglTerminate (egl_disp);
- egl_disp = EGL_NO_DISPLAY;
-
- g_set_error_literal (error, GDK_GL_ERROR,
- GDK_GL_ERROR_NOT_AVAILABLE,
- _("No GL implementation is available"));
-
- return FALSE;
- }
- }
-
display_win32->hasEglSurfacelessContext =
epoxy_has_egl_extension (egl_disp, "EGL_KHR_surfaceless_context");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]