aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac_gl.m
diff options
context:
space:
mode:
authorfalkTX <falktx@falktx.com>2021-06-07 10:47:53 +0100
committerDavid Robillard <d@drobilla.net>2021-06-07 11:34:40 -0400
commitc98ee490fcf93e290ae5e8a602fd88b359a61a1b (patch)
tree13328f9913ccec500c29adc9308186e0678a267b /src/mac_gl.m
parente52c00ebaf1d3e2ca1c87a291ed36b10a4822d62 (diff)
downloadpugl-c98ee490fcf93e290ae5e8a602fd88b359a61a1b.tar.gz
pugl-c98ee490fcf93e290ae5e8a602fd88b359a61a1b.tar.bz2
pugl-c98ee490fcf93e290ae5e8a602fd88b359a61a1b.zip
MacOS: Reset GL context after initial window reshape
Diffstat (limited to 'src/mac_gl.m')
-rw-r--r--src/mac_gl.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mac_gl.m b/src/mac_gl.m
index 039dbbf..3e74afe 100644
--- a/src/mac_gl.m
+++ b/src/mac_gl.m
@@ -94,6 +94,7 @@
if (self) {
[[self openGLContext] makeCurrentContext];
[self reshape];
+ [NSOpenGLContext clearCurrentContext];
}
return self;
}