Fix jaggl_pix cleanup if an error occurs

The previous pix_free label was in the wrong place, and the code
wouldn't break out of the loop.
master
Graham 4 years ago
parent 01548cb617
commit fd392a59c1
  1. 4
      gl-natives/src/main/c/jaggl.c

@ -1220,10 +1220,10 @@ JNIEXPORT jboolean JNICALL Java_jaggl_context_choosePixelFormat1(JNIEnv *env, jc
result = JNI_TRUE;
goto dsi_free;
}
pix_free:
CGLDestroyPixelFormat(jaggl_pix);
}
CGLDestroyPixelFormat(jaggl_pix);
#else
#error Unsupported platform
#endif

Loading…
Cancel
Save