From 75788aafd1956499c0b51eb640aa73a5258c6505 Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Tue, 27 Sep 2022 21:54:45 -0400 Subject: [PATCH] Specify readonly access when creating ShaderModule stream --- src/Graphics/Resources/ShaderModule.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Graphics/Resources/ShaderModule.cs b/src/Graphics/Resources/ShaderModule.cs index f66c0c3..f2c88d4 100644 --- a/src/Graphics/Resources/ShaderModule.cs +++ b/src/Graphics/Resources/ShaderModule.cs @@ -13,7 +13,7 @@ namespace MoonWorks.Graphics public unsafe ShaderModule(GraphicsDevice device, string filePath) : base(device) { - using (FileStream stream = new FileStream(filePath, FileMode.Open)) + using (FileStream stream = new FileStream(filePath, FileMode.Open, FileAccess.Read)) { Handle = CreateFromStream(device, stream); } -- 2.25.1