Smoke test on macos now compiles

This commit is contained in:
2019-07-11 21:58:59 -07:00
parent 9ee509b101
commit 570c5ab6bf
4 changed files with 39 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ void KRContext::destroyDeviceContexts()
gRenderContext = nil;
}
void KRContext::createDeviceContexts()
void createGLDeviceContexts()
{
if(gRenderContext == nil) {
@@ -63,20 +63,20 @@ void KRContext::createDeviceContexts()
void KRContext::activateStreamerContext()
{
createDeviceContexts();
createGLDeviceContexts();
[gStreamerContext makeCurrentContext];
}
void KRContext::activateRenderContext()
{
createDeviceContexts();
createGLDeviceContexts();
[gRenderContext update];
[gRenderContext makeCurrentContext];
}
void KRContext::attachToView(void *view)
{
createDeviceContexts();
createGLDeviceContexts();
NSView *v = (NSView *)view;
[gRenderContext setView: v];
[gRenderContext update];