NogginBops / ImGui.NET_OpenTK_Sample

A sample project showing an ImGui (using ImGui.NET) renderer for OpenTK in C#
106 stars 27 forks source link

Fix GL InvalidEnum error #23

Closed AntoineGagnon1 closed 2 years ago

AntoineGagnon1 commented 2 years ago

GL.ActiveTexture(0); generates a GL_INVALID_ENUM if not used with TextureUnit.Texture0

See Errors section : https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glActiveTexture.xhtml

NogginBops commented 2 years ago

Thanks for the PR! Classic blunder, merging it straight away.