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

Modifies error checking code in OpenGL.cs to accommodate multiple err… #214

Merged
merged 1 commit into from
Apr 24, 2023

Conversation

ftlPhysicsGuy
Copy link
Contributor

…ors. Also, if a PreGLCall is made before calling a closing PostGLCall, that could leave unreported errors that this new modification will now report.

This modification accounts for the fact that OpenGL calls can set multiple error flags. It follows instructions given in OpenGL documentation: "Thus, glGetError should always be called in a loop, until it returns GL_NO_ERROR, if all error flags are to be reset."

This is one of several modifications I make to the SharpGL source code any time I download the latest version for use in my projects. I intent to put out individual pull requests for each of them, hoping to improve the project for all. Thank you for your consideration.

…ors. Also, if a PreGLCall is made before calling a closing PostGLCall, that could leave unreported errors that this new modification will now report.
@codecov
Copy link

codecov bot commented Apr 21, 2023

Codecov Report

Merging #214 (2565dd2) into master (a37721c) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master    #214   +/-   ##
======================================
  Coverage    3.16%   3.16%           
======================================
  Files          90      90           
  Lines        3697    3697           
  Branches      657     657           
======================================
  Hits          117     117           
  Misses       3575    3575           
  Partials        5       5           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dwmkerr dwmkerr merged commit f57f530 into dwmkerr:master Apr 24, 2023
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