I’m having trouble integrating NvIFROpenGL within the UnrealEngine. I can make the samples and other trivial examples work.
I always get a crash calling NvIFR.nvIFROGLCreateSession(&SessionHandle, NULL).
The first suspicion is compiling with clang++. give the warning
warning: empty struct has size 0 in C, size 1 in C++
I can ignore the warning or add a byte to the structs (to force them to be sizeof(1)), but neither method prevents the crash.
I am confident I am running within a valid gl context, with a complete framebuffer, I can take screenshots from this point in the render thread using glreadpixels.
Any ideas as to how I can find the cause of this problem?