Specify readonly access when creating ShaderModule stream

pull/26/head
Caleb Cornett 2022-09-27 21:54:45 -04:00
parent bace9f570d
commit 75788aafd1
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)
{
using (FileStream stream = new FileStream(filePath, FileMode.Open))
using (FileStream stream = new FileStream(filePath, FileMode.Open, FileAccess.Read))
{
Handle = CreateFromStream(device, stream);
}