mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-12-21 13:33:04 +00:00
yuzu/bootmanager: Replace unnnecessary constructor initializer list member of GGLContext
The default constructor will always run, even when not specified, so this is redundant. However, the context member can indeed be initialized in the constructor initializer list.
This commit is contained in:
parent
52e43734c4
commit
54e9f9b6ed
1 changed files with 2 additions and 2 deletions
|
@ -91,8 +91,8 @@ void EmuThread::run() {
|
||||||
|
|
||||||
class GGLContext : public Core::Frontend::GraphicsContext {
|
class GGLContext : public Core::Frontend::GraphicsContext {
|
||||||
public:
|
public:
|
||||||
explicit GGLContext(QOpenGLContext* shared_context) : surface() {
|
explicit GGLContext(QOpenGLContext* shared_context)
|
||||||
context = std::make_unique<QOpenGLContext>(shared_context);
|
: context{std::make_unique<QOpenGLContext>(shared_context)} {
|
||||||
surface.setFormat(shared_context->format());
|
surface.setFormat(shared_context->format());
|
||||||
surface.create();
|
surface.create();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue