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

OpenGlControlBase enters OnOpenGlInit with OpenGL errors #13807

Closed
Dragorn421 opened this issue Dec 2, 2023 · 4 comments · Fixed by #16539
Closed

OpenGlControlBase enters OnOpenGlInit with OpenGL errors #13807

Dragorn421 opened this issue Dec 2, 2023 · 4 comments · Fixed by #16539
Labels
area-rendering bug help-wanted A contribution from the community would be most welcome.

Comments

@Dragorn421
Copy link
Contributor

Describe the bug

When implement OnOpenGlInit in an OpenGlControlBase and checking gl.GetError() for any error, there is one, presumably from something in Avalonia's code.

To Reproduce

Steps to reproduce the behavior:

  1. Clone, build and run https://github.com/Dragorn421/DragoStuff/tree/ffe12b1003c3e6cd92419d7fdaab97b3c90c5dc4
  2. Check the debug prints:
GL1.OnOpenGlInit
GL1.CheckError 1280
GL1.OnOpenGlRender
GL1.CheckError OK
GL1.CheckError OK
GL1.OnOpenGlRender
GL1.CheckError OK
GL1.CheckError OK
  1. Notice GL1.CheckError 1280. It is printed by https://github.com/Dragorn421/DragoStuff/blob/ffe12b1003c3e6cd92419d7fdaab97b3c90c5dc4/MyOpenGLControl.cs#L29 , before the child control does any OpenGL call, so it seems to be an error originating from something in Avalonia.

Expected behavior

gl.GetError() should always return GL_NO_ERROR on entering child/user methods like OnOpenGlInit

Environment

  • OS: Kubuntu 23.10 (Linux, X11)
  • Avalonia-Version: 11.0.5
@Dragorn421 Dragorn421 added the bug label Dec 2, 2023
@Coloryr
Copy link
Contributor

Coloryr commented Dec 4, 2023

1280 is mean GL_INVALID_ENUM
Some operations use incorrect parameters, but this is related to the version of OpenGL

@Dragorn421
Copy link
Contributor Author

Still in Avalonia 11.0.10

@timunie
Copy link
Contributor

timunie commented Jun 14, 2024

@Dragorn421 if you wanted to check newer version, worth to try 11.1 betas

@Dragorn421
Copy link
Contributor Author

Still in Avalonia 11.1.1

@maxkatz6 maxkatz6 added help-wanted A contribution from the community would be most welcome. area-rendering labels Jul 30, 2024
Dragorn421 added a commit to Dragorn421/Avalonia that referenced this issue Jul 30, 2024
github-merge-queue bot pushed a commit that referenced this issue Aug 3, 2024
Co-authored-by: Julien Lebosquain <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-rendering bug help-wanted A contribution from the community would be most welcome.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants