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

Consider aborting the process after GL_OUT_OF_MEMORY #13

Open
lcnr opened this issue Mar 9, 2020 · 0 comments
Open

Consider aborting the process after GL_OUT_OF_MEMORY #13

lcnr opened this issue Mar 9, 2020 · 0 comments
Labels
P-medium Medium priority question Further information is requested

Comments

@lcnr
Copy link
Owner

lcnr commented Mar 9, 2020

According to the official reference, OpenGL is in an undefined state after aborting.

As I don't want to deal with any of this it might be a good idea to abort the process once this happens.

Other alternatives:

  • just panic! instead (what is currently done)
  • return something like ErrKind::FatalOutOfMemory

We could poison the Backend once OpenGL is oom, even if I currently don't want to do it (small performance + maintanance cost)

@lcnr lcnr added question Further information is requested P-medium Medium priority labels Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-medium Medium priority question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant