mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 01:26:50 -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 );
|
||||
}
|
||||
|
||||
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] );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user