[gtk/wip/otte/gl-hdr] xxx surface
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/gl-hdr] xxx surface
- Date: Tue, 5 Oct 2021 02:16:27 +0000 (UTC)
commit 500a385e16024554cea5ac001c772614cee5b585
Author: Benjamin Otte <otte redhat com>
Date: Tue Oct 5 04:15:24 2021 +0200
xxx surface
gdk/gdksurface.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index c55f69dad3..c64c2a6a47 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -46,7 +46,9 @@
#include <math.h>
+#ifdef HAVE_EGL
#include <epoxy/egl.h>
+#endif
/**
* GdkSurface:
@@ -67,7 +69,9 @@ typedef struct _GdkSurfacePrivate GdkSurfacePrivate;
struct _GdkSurfacePrivate
{
gpointer egl_native_window;
+#ifdef HAVE_EGL
EGLSurface egl_surface;
+#endif
gpointer widget;
};
@@ -1077,6 +1081,7 @@ void
gdk_surface_set_egl_native_window (GdkSurface *self,
gpointer native_window)
{
+#ifdef HAVE_EGL
GdkSurfacePrivate *priv = gdk_surface_get_instance_private (self);
/* This checks that all EGL platforms we support conform to the same struct sizes.
@@ -1111,6 +1116,7 @@ gdk_surface_get_egl_surface (GdkSurface *self)
}
return priv->egl_surface;
+#endif
}
GdkGLContext *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]