[gtk/wip/chergert/gdk-macos-gl-renderer] macos: remove early pixelFormat check
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/gdk-macos-gl-renderer] macos: remove early pixelFormat check
- Date: Wed, 28 Oct 2020 21:53:07 +0000 (UTC)
commit ee30ff9052c1dc2d2da00f080e7459a66bbb2ff4
Author: Christian Hergert <chergert redhat com>
Date: Wed Oct 28 13:16:15 2020 -0700
macos: remove early pixelFormat check
We don't know what we need here yet because we might want
to use a specific version (3.2core instead of 4.1).
gdk/macos/gdkmacosglcontext.c | 14 --------------
1 file changed, 14 deletions(-)
---
diff --git a/gdk/macos/gdkmacosglcontext.c b/gdk/macos/gdkmacosglcontext.c
index 8236c084fe..fe4e9c3643 100644
--- a/gdk/macos/gdkmacosglcontext.c
+++ b/gdk/macos/gdkmacosglcontext.c
@@ -312,20 +312,6 @@ _gdk_macos_gl_context_new (GdkMacosSurface *surface,
g_return_val_if_fail (GDK_IS_MACOS_SURFACE (surface), NULL);
g_return_val_if_fail (!share || GDK_IS_MACOS_GL_CONTEXT (share), NULL);
- if (pixelFormat == NULL)
- {
- pixelFormat = [GdkMacosGLView defaultPixelFormat];
-
- if (pixelFormat == NULL)
- {
- g_set_error_literal (error,
- GDK_GL_ERROR,
- GDK_GL_ERROR_NOT_AVAILABLE,
- "Failed to create pixel format");
- return NULL;
- }
- }
-
context = g_object_new (GDK_TYPE_MACOS_GL_CONTEXT,
"surface", surface,
"shared-context", share,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]