forked from MoonsideGames/MoonWorks
Specify readonly access when creating ShaderModule stream (#26)
Co-authored-by: Caleb Cornett <caleb.cornett@outlook.com> Reviewed-on: MoonsideGames/MoonWorks#26 Co-authored-by: TheSpydog <thespydog@noreply.example.org> Co-committed-by: TheSpydog <thespydog@noreply.example.org>custom_video_shaders
parent
bace9f570d
commit
3ffdf8a929
|
@ -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