summaryrefslogtreecommitdiffstats
path: root/src/core/frontend/scope_acquire_context.cpp
blob: 878c3157c2a058be1427d652a0653ae3c14ddf04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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