1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:17:36 +00:00

LibGL: Add context lifetime debug output

Also, make `::create_context` return a `NonnullOwnPtr`.
This commit is contained in:
Jelle Raaijmakers 2022-01-12 16:39:59 +01:00 committed by Andreas Kling
parent a0086c033d
commit a4d98c4622
2 changed files with 11 additions and 4 deletions

View file

@ -120,7 +120,7 @@ public:
virtual void present() = 0;
};
OwnPtr<GLContext> create_context(Gfx::Bitmap&);
NonnullOwnPtr<GLContext> create_context(Gfx::Bitmap&);
void make_context_current(GLContext*);
void present_context(GLContext*);