diff --git a/ANX.Framework/Content/GraphicTypeReaders/EffectReader.cs b/ANX.Framework/Content/GraphicTypeReaders/EffectReader.cs index 6994759b..327597a6 100644 --- a/ANX.Framework/Content/GraphicTypeReaders/EffectReader.cs +++ b/ANX.Framework/Content/GraphicTypeReaders/EffectReader.cs @@ -42,6 +42,7 @@ namespace ANX.Framework.Content // Otherwise fallback on the original effect loading code. if (magicA != 'A' || magicN != 'N' || magicX != 'X') { + input.BaseStream.Seek(-3, SeekOrigin.Current); byte[] effectCode = input.ReadBytes(totalLength); var memStream = new MemoryStream(effectCode); diff --git a/RenderSystems/ANX.Framework.Windows.DX10/Effect_DX10.cs b/RenderSystems/ANX.Framework.Windows.DX10/Effect_DX10.cs index 7749c99d..1bd25b17 100644 --- a/RenderSystems/ANX.Framework.Windows.DX10/Effect_DX10.cs +++ b/RenderSystems/ANX.Framework.Windows.DX10/Effect_DX10.cs @@ -65,7 +65,7 @@ namespace ANX.RenderSystem.Windows.DX10 effectByteCode.Seek(0, SeekOrigin.Begin); } this.effectByteCode = ShaderBytecode.FromStream(effectByteCode); - this.nativeEffect = new SharpDX.Direct3D10.Effect(((GraphicsDeviceWindowsDX10)device.NativeDevice).NativeDevice, this.effectByteCode); + this.nativeEffect = new SharpDX.Direct3D10.Effect(((GraphicsDeviceWindowsDX10)device.NativeDevice).NativeDevice, this.effectByteCode, EffectFlags.None); } public void Apply(GraphicsDevice graphicsDevice)