Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GL InvalidEnum error #23

Merged
merged 2 commits into from
Jun 30, 2022
Merged

Conversation

AntoineGagnon1
Copy link
Contributor

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

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
This was causing an invalid enum error from opengl.
I think that GetPName.TextureBinding2D is the intented enum value ? It fixed the error.
@NogginBops
Copy link
Owner

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

@NogginBops NogginBops merged commit 088862a into NogginBops:opentk4.0 Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants