Specify readonly access when creating ShaderModule stream
parent
bace9f570d
commit
75788aafd1
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue