mirror of
https://git.suyu.dev/suyu/suyu
synced 2025-01-09 16:03:21 +00:00
19 lines
488 B
C++
19 lines
488 B
C++
![]() |
// Copyright 2019 yuzu Emulator Project
|
||
|
// Licensed under GPLv2 or any later version
|
||
|
// Refer to the license.txt file included.
|
||
|
|
||
|
#include "core/frontend/emu_window.h"
|
||
|
#include "core/frontend/scope_acquire_context.h"
|
||
|
|
||
|
namespace Core::Frontend {
|
||
|
|
||
|
ScopeAcquireContext::ScopeAcquireContext(Core::Frontend::GraphicsContext& context)
|
||
|
: context{context} {
|
||
|
context.MakeCurrent();
|
||
|
}
|
||
|
ScopeAcquireContext::~ScopeAcquireContext() {
|
||
|
context.DoneCurrent();
|
||
|
}
|
||
|
|
||
|
} // namespace Core::Frontend
|