[gtk/wip/chergert/gdk-macos-gl-renderer] macos: log requested version of Core profile
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/gdk-macos-gl-renderer] macos: log requested version of Core profile
- Date: Wed, 28 Oct 2020 21:53:07 +0000 (UTC)
commit f94f36a4c1a6c7e63357397115c107c39deb3850
Author: Christian Hergert <chergert redhat com>
Date: Wed Oct 28 13:17:02 2020 -0700
macos: log requested version of Core profile
gdk/macos/gdkmacosglcontext.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/gdk/macos/gdkmacosglcontext.c b/gdk/macos/gdkmacosglcontext.c
index fe4e9c3643..abc36960b0 100644
--- a/gdk/macos/gdkmacosglcontext.c
+++ b/gdk/macos/gdkmacosglcontext.c
@@ -96,12 +96,15 @@ gdk_macos_gl_context_real_realize (GdkGLContext *context,
GLint sync_to_framerate = 1;
GLint opaque = 0;
GLint validate = 0;
+ int major, minor;
g_assert (GDK_IS_MACOS_GL_CONTEXT (self));
if (self->gl_context != nil)
return TRUE;
+ gdk_gl_context_get_required_version (context, &major, &minor);
+
surface = gdk_draw_context_get_surface (GDK_DRAW_CONTEXT (context));
nsview = _gdk_macos_surface_get_view (GDK_MACOS_SURFACE (surface));
shared = gdk_gl_context_get_shared_context (context);
@@ -125,6 +128,11 @@ gdk_macos_gl_context_real_realize (GdkGLContext *context,
return FALSE;
}
+ GDK_DISPLAY_NOTE (gdk_draw_context_get_display (GDK_DRAW_CONTEXT (context)),
+ OPENGL,
+ g_message ("Creating NSOpenGLContext (version %d.%d)",
+ major, minor));
+
gl_context = [[NSOpenGLContext alloc] initWithFormat:pixelFormat
shareContext:shared_gl_context];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]