Fixed a visual bug related to render targets

This commit is contained in:
CaptainSegis 2017-10-27 21:39:40 -05:00
parent 2eac9b665f
commit 196b817dc8
5 changed files with 7 additions and 7 deletions

View File

@ -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)

View File

@ -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 = ""

View File

@ -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()

View File

@ -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)

View File

@ -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