diff --git a/2.5DHero/2.5DHero/Screens/Inventory/NewInventoryScreen.vb b/2.5DHero/2.5DHero/Screens/Inventory/NewInventoryScreen.vb index f90f2fe3e..cf0fcc15f 100644 --- a/2.5DHero/2.5DHero/Screens/Inventory/NewInventoryScreen.vb +++ b/2.5DHero/2.5DHero/Screens/Inventory/NewInventoryScreen.vb @@ -142,8 +142,8 @@ Public Class NewInventoryScreen 'JSON Stuff '_translation = New Globalization.Classes.LOCAL_InventoryScreen() - target_1 = New RenderTarget2D(GraphicsDevice, 816, 400 - 32, False, SurfaceFormat.Color, DepthFormat.None, 0, RenderTargetUsage.PreserveContents) - target_2 = New RenderTarget2D(GraphicsDevice, 500, 368) + target_1 = New RenderTarget2D(GraphicsDevice, 816, 400 - 32, False, SurfaceFormat.Color, DepthFormat.Depth24Stencil8, 0, RenderTargetUsage.PreserveContents) + target_2 = New RenderTarget2D(GraphicsDevice, 500, 368, False, SurfaceFormat.Color, DepthFormat.Depth24Stencil8) itemBatch = New CoreSpriteBatch(GraphicsDevice) infoBatch = New CoreSpriteBatch(GraphicsDevice) diff --git a/2.5DHero/2.5DHero/Screens/MainMenu/PressStartScreen.vb b/2.5DHero/2.5DHero/Screens/MainMenu/PressStartScreen.vb index d15bbb093..30b5537cd 100644 --- a/2.5DHero/2.5DHero/Screens/MainMenu/PressStartScreen.vb +++ b/2.5DHero/2.5DHero/Screens/MainMenu/PressStartScreen.vb @@ -59,7 +59,7 @@ Public Class PressStartScreen _shineRenderer = New SpriteBatch(GraphicsDevice) _backgroundRenderer = New SpriteBatch(GraphicsDevice) - target = New RenderTarget2D(GraphicsDevice, windowSize.Width, windowSize.Height) + target = New RenderTarget2D(GraphicsDevice, windowSize.Width, windowSize.Height, False, SurfaceFormat.Color, DepthFormat.Depth24Stencil8) 'crappy fix Screens.MainMenu.NewNewGameScreen.CharacterSelectionScreen.SelectedSkin = "" diff --git a/2.5DHero/2.5DHero/Screens/NewMenuScreen.vb b/2.5DHero/2.5DHero/Screens/NewMenuScreen.vb index 5a7464cc8..e35da6582 100644 --- a/2.5DHero/2.5DHero/Screens/NewMenuScreen.vb +++ b/2.5DHero/2.5DHero/Screens/NewMenuScreen.vb @@ -27,7 +27,7 @@ IsDrawingGradients = True MouseVisible = True - _preScreenTarget = New RenderTarget2D(GraphicsDevice, windowSize.Width, windowSize.Height) + _preScreenTarget = New RenderTarget2D(GraphicsDevice, windowSize.Width, windowSize.Height, False, SurfaceFormat.Color, DepthFormat.Depth24Stencil8) _texture = TextureManager.GetTexture("GUI\Menus\General") ConstructMenu() diff --git a/2.5DHero/2.5DHero/Screens/NewTrainerScreen.vb b/2.5DHero/2.5DHero/Screens/NewTrainerScreen.vb index 59f494b5d..f097af9f6 100644 --- a/2.5DHero/2.5DHero/Screens/NewTrainerScreen.vb +++ b/2.5DHero/2.5DHero/Screens/NewTrainerScreen.vb @@ -41,8 +41,8 @@ _backTexture = Content.Load(Of Texture2D)("Textures\UI\TrainerCard\Back") _paperClipTexture = Content.Load(Of Texture2D)("Textures\UI\TrainerCard\Paperclip") _papersTexture = Content.Load(Of Texture2D)("Textures\UI\TrainerCard\Papers") - target = New RenderTarget2D(GraphicsDevice, _backTexture.Width, _backTexture.Height + _paperClipTexture.Height) - target2 = New RenderTarget2D(GraphicsDevice, Core.windowSize.Width, Core.windowSize.Height) + target = New RenderTarget2D(GraphicsDevice, _backTexture.Width, _backTexture.Height + _paperClipTexture.Height, False, SurfaceFormat.Color, DepthFormat.Depth24Stencil8) + target2 = New RenderTarget2D(GraphicsDevice, Core.windowSize.Width, Core.windowSize.Height, False, SurfaceFormat.Color, DepthFormat.Depth24Stencil8) If Screen.Level.Surfing = True Then _charTexture = TextureManager.GetTexture("Textures\NPC\" & Core.Player.TempSurfSkin) diff --git a/2.5DHero/2.5DHero/Screens/Pokemon/PartyScreen.vb b/2.5DHero/2.5DHero/Screens/Pokemon/PartyScreen.vb index 24db2ae64..af0aa4af6 100644 --- a/2.5DHero/2.5DHero/Screens/Pokemon/PartyScreen.vb +++ b/2.5DHero/2.5DHero/Screens/Pokemon/PartyScreen.vb @@ -87,7 +87,7 @@ Public Class PartyScreen Public Sub New(ByVal currentScreen As Screen, ByVal Item As Item, ByVal ChoosePokemon As DoStuff, ByVal Title As String, ByVal canExit As Boolean, ByVal canChooseFainted As Boolean, ByVal canChooseEgg As Boolean, Optional ByVal _pokemonList As List(Of Pokemon) = Nothing, Optional ByVal ChooseMode As Boolean = True) - _preScreenTarget = New RenderTarget2D(GraphicsDevice, windowSize.Width, windowSize.Height) + _preScreenTarget = New RenderTarget2D(GraphicsDevice, windowSize.Width, windowSize.Height, False, SurfaceFormat.Color, DepthFormat.Depth24Stencil8) _blur = New Resources.GaussianEffect(windowSize.Width, windowSize.Height) Me.Item = Item