Download

FRenderTarget::ReadPixels crashes when the RenderTarget has only red channel?

I’m trying to read the pixels of a RenderTarget in C++ code, the RenderTarget has only the red channel, but when I use the function FRenderTarget::ReadPixels the game crashes, if I change the RenderTarget to RGB, it works correctly, but I don’t want to leave at RGB because I only need the red channel.

Hey,

In order to get some help, try to post the stacktrace of the crash - if you have one - or the code snippet that you’re using to read those pixels.

Cheers