From 5433643e48d18cf82c77e1c48483d5e67b3842fe Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Wed, 9 Sep 2015 18:57:21 +1000 Subject: [PATCH] Fix blendfuncs initialisation, oops. --- ClassicalSharp/GraphicsAPI/OpenGLApi.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ClassicalSharp/GraphicsAPI/OpenGLApi.cs b/ClassicalSharp/GraphicsAPI/OpenGLApi.cs index fd24fd0d9..248c0180c 100644 --- a/ClassicalSharp/GraphicsAPI/OpenGLApi.cs +++ b/ClassicalSharp/GraphicsAPI/OpenGLApi.cs @@ -47,11 +47,7 @@ namespace ClassicalSharp.GraphicsAPI { GL.AlphaFunc( compareFuncs[(int)func], value ); } - BlendingFactor[] blendFuncs = { - BlendingFactor.Zero, BlendingFactor.One, - BlendingFactor.SrcAlpha, BlendingFactor.OneMinusSrcAlpha, - BlendingFactor.DstAlpha, BlendingFactor.OneMinusDstAlpha, - }; + BlendingFactor[] blendFuncs; public override void AlphaBlendFunc( BlendFunc srcFunc, BlendFunc dstFunc ) { GL.BlendFunc( blendFuncs[(int)srcFunc], blendFuncs[(int)dstFunc] ); }