mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 17:47:12 -04:00
Fix blendfuncs initialisation, oops.
This commit is contained in:
parent
3459b28264
commit
5433643e48
@ -47,11 +47,7 @@ namespace ClassicalSharp.GraphicsAPI {
|
|||||||
GL.AlphaFunc( compareFuncs[(int)func], value );
|
GL.AlphaFunc( compareFuncs[(int)func], value );
|
||||||
}
|
}
|
||||||
|
|
||||||
BlendingFactor[] blendFuncs = {
|
BlendingFactor[] blendFuncs;
|
||||||
BlendingFactor.Zero, BlendingFactor.One,
|
|
||||||
BlendingFactor.SrcAlpha, BlendingFactor.OneMinusSrcAlpha,
|
|
||||||
BlendingFactor.DstAlpha, BlendingFactor.OneMinusDstAlpha,
|
|
||||||
};
|
|
||||||
public override void AlphaBlendFunc( BlendFunc srcFunc, BlendFunc dstFunc ) {
|
public override void AlphaBlendFunc( BlendFunc srcFunc, BlendFunc dstFunc ) {
|
||||||
GL.BlendFunc( blendFuncs[(int)srcFunc], blendFuncs[(int)dstFunc] );
|
GL.BlendFunc( blendFuncs[(int)srcFunc], blendFuncs[(int)dstFunc] );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user