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

OpenGL error on launch #5297

Open
Apollucas opened this issue Oct 10, 2021 · 8 comments
Open

OpenGL error on launch #5297

Apollucas opened this issue Oct 10, 2021 · 8 comments

Comments

@Apollucas
Copy link

I get the following error when launching a freshly installed Pioneer (2021-07-23 release):

OpenGL error(s) during frame:
In function Graphics::OGL::TextureGL::TextureGL
On line 96
GL_INVALID_OPERATION

After closing the error the game launches with a black screen, playing background music and with a custom cursor. I'm unable to interact with the menu, though.
I'm running this on Windows 10 Home Edition.

I apologise if this isn't the right way to submit issues, I'm still very much new to GitHub.

@nozmajner
Copy link
Contributor

Perfectly good issue, no need to apologize!
Could you post the output.txt and more importantly the opengl.txt from your Documents/Pioneer dir? (~/.Pioneer on linux I believe). Those might be helpful for the knowledgeable good people of the project to help figure the issue out.

@Apollucas
Copy link
Author

opengl.txt
output.txt
Here you go!

@fluffyfreak
Copy link
Contributor

Strange, an nVidia 3050 is found and used on your laptop. That should be perfectly compatible. The drivers are up to date as well.

@fluffyfreak
Copy link
Contributor

From doing a quick little dig this might be related to the multisampling.
If you open the file config.ini, which should be in the same place as output.txt and opengl.txt were, and change the line AntiAliasingMode to be AntiAliasingMode=0 then run again please?

That should disable an anti-aliasing and avoid the code that uses an anti-aliased rendertarget.

Pinging @Web-eWorks for visibility.

@Web-eWorks
Copy link
Member

Most likely related to that bug, yeah. I added what I thought was sufficient error handling for that one, but given that error handling is present in the stable version @Apollucas is using and still didn't trigger I might have to slice and dice the framebuffer handling further.

@Apollucas
Copy link
Author

From doing a quick little dig this might be related to the multisampling. If you open the file config.ini, which should be in the same place as output.txt and opengl.txt were, and change the line AntiAliasingMode to be AntiAliasingMode=0 then run again please?

That should disable an anti-aliasing and avoid the code that uses an anti-aliased rendertarget.

Pinging @Web-eWorks for visibility.

Yep, that did it! Thanks a lot, I hope this was useful to you guys as well!

@fluffyfreak
Copy link
Contributor

@Web-eWorks might be worth adding a bit of code to try to create the rendertarget with AA and then fallback to disabling it if it fails?

@Web-eWorks
Copy link
Member

I've already got code that checks for a failure and bails out... which clearly hasn't triggered here. Once I can reliably detect the bad framebuffer, it should be easy to work around the problem, yeah. Unfortunately I don't have a repro case on my available hardware for this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants