glDrawArrays(GL_QUADS, 0, 4); crash

Hi
what could cause my app to crash at:

glDrawArrays(GL_QUADS, 0, 4);

Thanks
Michael

Not having an active GL context.
Enabled vertex attribute arrays that are not bound (or are bound incorrectly).
…all kinds of things.

You haven’t given us much to go on here.

Please read The Forum Posting Guidelines for tips in composing your post. This’ll increase the chance that you get useful feedback.

yes it has to do with context as it doesn’t crash with

wglMakeCurrent(NULL, NULL);

simply black screen. How to get the context? X-Plane plugin.
Thanks

Talk to the X-Plane guys. They’re going to be able to tell if/how you can get access to a GL context and how to make proper use of it without crashing your plugin or X-Plane. Some version of X-Plane are written on top of Vulkan instead of GL, so that may come into play here too.