opcon / QuickFont

A Modern OpenGL Font Rendering Library for OpenTK

Home Page:https://github.com/opcon/QuickFont

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update to OpenTK 3.0.1

MutterOberin opened this issue · comments

In OpenTK 3.0.1 the signature of GL.BlendFunc changed. The enums are BlendFactor instead of BlendFactorSrc and BlendFactor instead of BlendFactorDest

Update the call QFontDrawing accordingly:

if (_useDefaultBlendFunction)
            {
                GL.Enable(EnableCap.Blend);
                GL.BlendFunc(BlendingFactor.SrcAlpha, BlendingFactor.OneMinusSrcAlpha);
            }

Also I set the UseDefaultBlendFunction to false and it still threw an "Method not found exception".