From 5baa1d7b402e27648d4e02dcbbf001c66c020cac Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Wed, 8 Feb 2023 12:44:36 -0800 Subject: [PATCH] Fix video shader base path lookup --- src/Graphics/GraphicsDevice.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Graphics/GraphicsDevice.cs b/src/Graphics/GraphicsDevice.cs index 5d34dced..f821a6d3 100644 --- a/src/Graphics/GraphicsDevice.cs +++ b/src/Graphics/GraphicsDevice.cs @@ -36,7 +36,7 @@ namespace MoonWorks.Graphics ); // Check for optional video shaders - string basePath = SDL2.SDL.SDL_GetBasePath(); + string basePath = System.AppContext.BaseDirectory; string videoVertPath = Path.Combine(basePath, "video_fullscreen.vert.refresh"); string videoFragPath = Path.Combine(basePath, "video_yuv2rgba.frag.refresh"); if (File.Exists(videoVertPath) && File.Exists(videoFragPath))