aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_osx.m
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-27 00:59:16 +0200
committerDavid Robillard <d@drobilla.net>2019-07-29 01:59:15 +0200
commit5049953041cbc9592f0470eb185e1448b69835d6 (patch)
tree8752948797a3cb00fb411b97902517e0dee625ac /pugl/pugl_osx.m
parent657a30d29edbf28c2d12788114c988156cfd6996 (diff)
downloadpugl-5049953041cbc9592f0470eb185e1448b69835d6.tar.gz
pugl-5049953041cbc9592f0470eb185e1448b69835d6.tar.bz2
pugl-5049953041cbc9592f0470eb185e1448b69835d6.zip
Completely separate backends from platform implementation
This removes PuglContextType and allows the user to pass a backend directly. Normally this would come from one of the two accessors declared in the headers, but it would be possible to add backends without changing any of the existing code at all. Unfortunately, it is not possible to preserve backwards compatibility and achieve the ultimate goal of linking only to the required dependencies, so puglInitContextType() has just been removed.
Diffstat (limited to 'pugl/pugl_osx.m')
-rw-r--r--pugl/pugl_osx.m7
1 files changed, 0 insertions, 7 deletions
diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m
index 30eb84d..6ddb24d 100644
--- a/pugl/pugl_osx.m
+++ b/pugl/pugl_osx.m
@@ -745,13 +745,6 @@ puglCreateWindow(PuglView* view, const char* title)
[NSAutoreleasePool new];
impl->app = [NSApplication sharedApplication];
- view->backend = puglGlBackend();
- if (view->ctx_type == PUGL_CAIRO) {
-#ifdef PUGL_HAVE_CAIRO
- view->backend = puglCairoBackend();
-#endif
- }
-
impl->glview = [PuglOpenGLView alloc];
impl->glview->trackingArea = nil;
impl->glview->markedText = [[NSMutableAttributedString alloc] init];