commit febdf28e055512e929aab07982a3d445fc3ef401
parent 5b10613f6e2191a7c38cd67ec62d9517837cb039
Author: falkTX <falktx@falktx.com>
Date: Sun, 9 May 2021 17:30:22 +0100
Fix build, add puglBackendEnter
Signed-off-by: falkTX <falktx@falktx.com>
Diffstat:
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/dgl/src/WindowPrivateData.cpp b/dgl/src/WindowPrivateData.cpp
@@ -156,7 +156,7 @@ void Window::PrivateData::init(const uint width, const uint height, const bool r
// FIXME this is bad
puglRealize(view);
- puglX11GlEnter(view, NULL);
+ puglBackendEnter(view);
}
// -----------------------------------------------------------------------
diff --git a/dgl/src/pugl.cpp b/dgl/src/pugl.cpp
@@ -94,6 +94,14 @@ const char* puglGetWindowTitle(const PuglView* view)
}
// --------------------------------------------------------------------------------------------------------------------
+// expose backend enter
+
+void puglBackendEnter(PuglView* view)
+{
+ view->backend->enter(view, NULL);
+}
+
+// --------------------------------------------------------------------------------------------------------------------
// set window size without changing frame x/y position
PuglStatus puglSetWindowSize(PuglView* view, unsigned int width, unsigned int height)
diff --git a/dgl/src/pugl.hpp b/dgl/src/pugl.hpp
@@ -37,6 +37,10 @@ PUGL_BEGIN_DECLS
PUGL_API const char*
puglGetWindowTitle(const PuglView* view);
+// expose backend enter
+PUGL_API void
+puglBackendEnter(PuglView* view);
+
// set window size without changing frame x/y position
PUGL_API PuglStatus
puglSetWindowSize(PuglView* view, unsigned int width, unsigned int height);