Specify readonly access when creating ShaderModule stream #26

Merged
cosmonaut merged 1 commits from TheSpydog/MoonWorks:finnickyfilesystemfixes into main 2022-09-28 23:52:29 +00:00
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ namespace MoonWorks.Graphics
public unsafe ShaderModule(GraphicsDevice device, string filePath) : base(device) 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); Handle = CreateFromStream(device, stream);
} }