From f628fb3fd25ddb9e9cf2fb0802a2e17f38fc26c4 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Mon, 11 Feb 2019 19:14:37 +0100 Subject: [PATCH] Give Parallax texture a name. --- Content.Client/Parallax/ParallaxManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Client/Parallax/ParallaxManager.cs b/Content.Client/Parallax/ParallaxManager.cs index fe55702612..a30e647de5 100644 --- a/Content.Client/Parallax/ParallaxManager.cs +++ b/Content.Client/Parallax/ParallaxManager.cs @@ -63,7 +63,7 @@ namespace Content.Client.Parallax { using (var stream = _resourceCache.UserData.Open(ParallaxPath, FileMode.Open)) { - ParallaxTexture = Texture.LoadFromPNGStream(stream); + ParallaxTexture = Texture.LoadFromPNGStream(stream, "Parallax"); } OnTextureLoaded?.Invoke(ParallaxTexture); @@ -81,7 +81,7 @@ namespace Content.Client.Parallax // Generate the parallax in the thread pool. var image = await Task.Run(() => ParallaxGenerator.GenerateParallax(table, new Size(1920, 1080))); // And load it in the main thread for safety reasons. - ParallaxTexture = Texture.LoadFromImage(image); + ParallaxTexture = Texture.LoadFromImage(image, "Parallax"); // Store it and CRC so further game starts don't need to regenerate it. using (var stream = _resourceCache.UserData.Open(ParallaxPath, FileMode.Create))