mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-11 13:58:07 -05:00
core/frontend/emu_window: Make GraphicsContext's destructor virtual
This class is used in a polymorphic context, so destruction of the context will lead to undefined behavior if the destructor isn't virtual.
This commit is contained in:
@ -19,6 +19,8 @@ namespace Core::Frontend {
|
||||
*/
|
||||
class GraphicsContext {
|
||||
public:
|
||||
virtual ~GraphicsContext();
|
||||
|
||||
/// Makes the graphics context current for the caller thread
|
||||
virtual void MakeCurrent() = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user