libobs-opengl: Fix Mac VAO created without context

This commit is contained in:
jpark37 2020-02-24 22:08:28 -08:00
parent 3667e556db
commit 1733705070

View File

@ -93,7 +93,6 @@ struct gl_platform *gl_platform_create(gs_device_t *device, uint32_t adapter)
GLint interval = 0;
[context setValues:&interval forParameter:NSOpenGLCPSwapInterval];
const bool success = gladLoadGL() != 0;
[NSOpenGLContext clearCurrentContext];
if (!success) {
blog(LOG_ERROR, "gladLoadGL failed");