summaryrefslogtreecommitdiffstats
path: root/src/core/frontend/scope_acquire_window_context.cpp
blob: 3663dad1739b0aa86a234e088cdbb136c76bc470 (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_window_context.h"

namespace Core::Frontend {

ScopeAcquireWindowContext::ScopeAcquireWindowContext(Core::Frontend::EmuWindow& emu_window_)
    : emu_window{emu_window_} {
    emu_window.MakeCurrent();
}
ScopeAcquireWindowContext::~ScopeAcquireWindowContext() {
    emu_window.DoneCurrent();
}

} // namespace Core::Frontend