aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/x11_gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/detail/x11_gl.c')
-rw-r--r--pugl/detail/x11_gl.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/pugl/detail/x11_gl.c b/pugl/detail/x11_gl.c
index f5dbe2c..ea34fc3 100644
--- a/pugl/detail/x11_gl.c
+++ b/pugl/detail/x11_gl.c
@@ -22,6 +22,7 @@
#include "pugl/detail/x11.h"
#include "pugl/pugl.h"
#include "pugl/pugl_gl_backend.h"
+#include "pugl/pugl_stub_backend.h"
#include <GL/gl.h>
#include <GL/glx.h>
@@ -188,20 +189,6 @@ puglX11GlLeave(PuglView* view, bool drawing)
return PUGL_SUCCESS;
}
-static PuglStatus
-puglX11GlResize(PuglView* PUGL_UNUSED(view),
- int PUGL_UNUSED(width),
- int PUGL_UNUSED(height))
-{
- return PUGL_SUCCESS;
-}
-
-static void*
-puglX11GlGetContext(PuglView* PUGL_UNUSED(view))
-{
- return NULL;
-}
-
PuglGlFunc
puglGetProcAddress(const char* name)
{
@@ -216,8 +203,8 @@ const PuglBackend* puglGlBackend(void)
puglX11GlDestroy,
puglX11GlEnter,
puglX11GlLeave,
- puglX11GlResize,
- puglX11GlGetContext
+ puglStubResize,
+ puglStubGetContext
};
return &backend;