Fix the overworld rendering when inventory is opened.

This commit is contained in:
Yong Jian Ming 2025-02-21 22:27:01 +08:00
parent 4d5173fab4
commit fb368e0f2d
No known key found for this signature in database
GPG Key ID: A9D91E79495C0FAB
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ Public Class NewInventoryScreen
Public Sub New(ByVal currentScreen As Screen, ByVal AllowedPages As Integer(), ByVal StartPageIndex As Integer, ByVal DoStuff As DoStuff, Optional ByVal AllowedItems As List(Of String) = Nothing, Optional ByVal DoReturnItem As Boolean = False)
SelectedItem = "-1"
_preScreenTarget = New RenderTarget2D(GraphicsDevice, windowSize.Width, windowSize.Height)
_preScreenTarget = New RenderTarget2D(GraphicsDevice, windowSize.Width, windowSize.Height, False, SurfaceFormat.Color, DepthFormat.Depth24Stencil8)
_blur = New Resources.Blur.BlurHandler(windowSize.Width, windowSize.Height)
If AllowedPages.Contains(StartPageIndex) = False Then