@Noxalus wrote:
Hello everyone
I'm currently trying to figure out why the
BoxingViewportAdapter
doesn't work as expected when I'm using aRenderTarget2D
. The simple fact of callingGraphicsDevice.SetRenderTarget()
will make the boxing viewport adapter have the same results than if I used the scaling viewport adapter, and I don't understand whyHere is a quick example, I've just updated the Demo.ViewportAdapters project to only use a
BoxingViewportAdapter
and to create and clear aRenderTarget2D
(without using it anyway):You can see that commenting the line 56, it works as expected whereas it shouldn't have any impact:
_graphics.GraphicsDevice.SetRenderTarget(_renderTarget);
Do you know what happens?
Posts: 1
Participants: 1