aboutsummaryrefslogtreecommitdiff
path: root/pugl/detail/mac_gl.m
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/detail/mac_gl.m')
-rw-r--r--pugl/detail/mac_gl.m17
1 files changed, 3 insertions, 14 deletions
diff --git a/pugl/detail/mac_gl.m b/pugl/detail/mac_gl.m
index b84f799..6e3c1c6 100644
--- a/pugl/detail/mac_gl.m
+++ b/pugl/detail/mac_gl.m
@@ -21,6 +21,7 @@
#include "pugl/detail/implementation.h"
#include "pugl/detail/mac.h"
#include "pugl/pugl_gl_backend.h"
+#include "pugl/pugl_stub_backend.h"
#ifndef __MAC_10_10
#define NSOpenGLProfileVersion4_1Core NSOpenGLProfileVersion3_2Core
@@ -94,12 +95,6 @@ typedef NSUInteger NSWindowStyleMask;
@end
static PuglStatus
-puglMacGlConfigure(PuglView* PUGL_UNUSED(view))
-{
- return PUGL_SUCCESS;
-}
-
-static PuglStatus
puglMacGlCreate(PuglView* view)
{
PuglInternals* impl = view->impl;
@@ -164,22 +159,16 @@ puglMacGlResize(PuglView* view, int PUGL_UNUSED(width), int PUGL_UNUSED(height))
return PUGL_SUCCESS;
}
-static void*
-puglMacGlGetContext(PuglView* PUGL_UNUSED(view))
-{
- return NULL;
-}
-
const PuglBackend* puglGlBackend(void)
{
static const PuglBackend backend = {
- puglMacGlConfigure,
+ puglStubConfigure,
puglMacGlCreate,
puglMacGlDestroy,
puglMacGlEnter,
puglMacGlLeave,
puglMacGlResize,
- puglMacGlGetContext
+ puglStubGetContext
};
return &backend;