Crash at render thread

Hello all,
Im developing an app where a UTexture2D gets updated in OpenGL layer.
When doing OphenGL stuff, i get error GL_INVALID_FRAMEBUFFER_OPERATION, 0x0506
Given when doing anything that would attempt to read from or write/render to a framebuffer that is not complete
I think the problem is because im not calling the function in render thread.
I’ve tried to call my function inside this ENQUEUE_UNIQUE_RENDER_COMMAND_ONEPARAMETER, but it crashes immediately after 1 frame renderer. (IsInGameThread assertion)
I’ve tried AsyncTask too, with RenderThread(crash) and RHIThread(my function gets never called)
Any ideas about what is happening?
Thank you very much.
Colin.

1 Like