Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

BoxingViewportAdapter issue when using a RenderTarget2D

$
0
0

@Noxalus wrote:

Hello everyone :slight_smile:

I'm currently trying to figure out why the BoxingViewportAdapter doesn't work as expected when I'm using a RenderTarget2D. The simple fact of calling GraphicsDevice.SetRenderTarget() will make the boxing viewport adapter have the same results than if I used the scaling viewport adapter, and I don't understand why :cry:

Here is a quick example, I've just updated the Demo.ViewportAdapters project to only use a BoxingViewportAdapter and to create and clear a RenderTarget2D (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

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles