Say for example I have a Back-Buffer the size of 2000x1000.
In addition I have a render target (FBO) the size of 2000x1000.
And say the Back-Buffer is multi-sampled (16).
I want to blit the pixels from the back-buffer to the final render target, BUT - I want to copy the entire back-buffer frame to the upper-left quarter of the final render target.
Meaning - I want to copy from the BB and shrink it by 4 when it’s copied to the final render target.
The problem is - this doesn’t work and gives me an ‘Invalid Operation’ error.
So what I did to bypass the error is -
I’ve rendered to the 2000x1000 Back-buffer.
Then I copied the pixels as they are to a TEMP render target 2000x1000 size.
Then I copied & shrunk from the TEMP render target to the FINAL render target, and this works.
Maybe you can’t copy & shrink from the Multi-Sampled Back-Buffer to a non-multi-sampled final render target ?
Is this true ?
If not - I’d be happy to hear so …
Because this extra copy through the TEMP render target causes me some performance issues I cannot afford …
Thank you all in advance !