I’m trying to read pixels from an offscreen framebuffer.
For the most part all works fine.
However when certain sizes of the frame buffer opengl (or in my case openTK) throws memory errors not being able to read out the memory.
It seems that for the larger pixel sizes mostly with odd sizes this happens.
It seems opengl is drawing fine.
There are no opengl errors thrown.
But the exception is thrown when calling ReadPixels with above sizes.
My question; is there any limitation on ReadPixels that i’m not seeing?
Should for ReadPixels to work there be a multiple of 2 or 4 inside the sizing? and why?