Check for CGLSetCurrentContext errors in drawInCGLContext

master
Graham 4 years ago
parent 6c75a3c590
commit 37efde58ef
  1. 4
      gl-natives/src/main/c/jaggl.c

@ -339,7 +339,9 @@ static void *jaggl_proc_addr(const char *name) {
pixelFormat:(CGLPixelFormatObj)pixelFormat
forLayerTime:(CFTimeInterval)layerTime
displayTime:(const CVTimeStamp *)displayTime {
CGLSetCurrentContext(context);
if (CGLSetCurrentContext(context) != kCGLNoError) {
return;
}
[lock lock];

Loading…
Cancel
Save