[gtk/wip/otte/gl-hdr] xxx display
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/gl-hdr] xxx display
- Date: Tue, 5 Oct 2021 02:16:27 +0000 (UTC)
commit 54ec55cbe97709e9e1b4e80c161362c5f50df4ec
Author: Benjamin Otte <otte redhat com>
Date: Tue Oct 5 04:16:16 2021 +0200
xxx display
gdk/gdkdisplay.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index 98cfc2e0c0..b227d75cba 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -36,7 +36,9 @@
#include "gdkglcontextprivate.h"
#include "gdkmonitorprivate.h"
+#ifdef HAVE_EGL
#include <epoxy/egl.h>
+#endif
#include <math.h>
/**
@@ -88,8 +90,10 @@ struct _GdkDisplayPrivate {
GdkGLContext *gl_context;
GError *gl_error;
+#ifdef HAVE_EGL
EGLDisplay egl_display;
EGLConfig egl_config;
+#endif
guint rgba : 1;
guint composited : 1;
@@ -156,6 +160,7 @@ gdk_display_default_rate_egl_config (GdkDisplay *display,
gpointer config)
{
guint distance = 0;
+#ifdef HAVE_EGL
int tmp;
if (!eglGetConfigAttrib (egl_display, config, EGL_SAMPLE_BUFFERS, &tmp) || tmp != 0)
@@ -164,6 +169,7 @@ gdk_display_default_rate_egl_config (GdkDisplay *display,
if (!eglGetConfigAttrib (egl_display, config, EGL_DEPTH_SIZE, &tmp) || tmp != 0 ||
!eglGetConfigAttrib (egl_display, config, EGL_STENCIL_SIZE, &tmp) || tmp != 0)
distance += 0x10000;
+#endif
return distance;
}
@@ -1336,6 +1342,7 @@ gdk_display_get_gl_context (GdkDisplay *self)
return priv->gl_context;
}
+#ifdef HAVE_EGL
#ifdef G_ENABLE_DEBUG
static int
strvcmp (gconstpointer p1,
@@ -1709,6 +1716,7 @@ gdk_display_init_egl (GdkDisplay *self,
return TRUE;
}
+#endif
GdkDebugFlags
gdk_display_get_debug_flags (GdkDisplay *display)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]