You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
488 B
18 lines
488 B
// 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
|