Unity-Technologies / NativeRenderingPlugin

C++ Rendering Plugin example for Unity
https://docs.unity3d.com/Manual/NativePluginInterface.html
MIT License
815 stars 163 forks source link

Native Plugin crash on Windows using OpenGL ES 3 #19

Open imayo opened 2 years ago

imayo commented 2 years ago

It crashes in function static GLuint CreateShader(GLenum type, const char* sourceText) line 125 (GLuint ret = glCreateShader(type); with:

Exception thrown at 0x0000000000000000 in Unity.exe: 0xC0000005: Access violation executing location 0x0000000000000000.

PC running Windows 11 (10.0.22000.556). We are using Unity 2021.3.1f1.

Should it work or isn't it meant to work with that version of OpenGL in Windows platform?

chaoscreater commented 2 years ago

Having same issue as well

SnowWindSaveYou commented 2 years ago

same

Madara321 commented 2 years ago

image move gl3wInit() to here

caogtaa commented 2 years ago

image move gl3wInit() to here

You save my day!