Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

Properly delete OpenGL context on shutdown #19

Open
HiImJulien opened this issue Aug 14, 2020 · 0 comments
Open

Properly delete OpenGL context on shutdown #19

HiImJulien opened this issue Aug 14, 2020 · 0 comments
Assignees
Labels
bug Something isn't working win32
Milestone

Comments

@HiImJulien
Copy link
Owner

HiImJulien commented Aug 14, 2020

When calling fn_deinit_gl_module(void), the framework deletes every context in the thread, that called the aforementioned function.

However, the specification for wglDeleteContext states:

It is an error to delete an OpenGL rendering context that is the current context of another thread.

This might lead to errors.

@HiImJulien HiImJulien added bug Something isn't working win32 labels Aug 14, 2020
@HiImJulien HiImJulien added this to the 0.4 milestone Aug 14, 2020
@HiImJulien HiImJulien self-assigned this Aug 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working win32
Projects
None yet
Development

No branches or pull requests

1 participant