summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-05-01 02:10:38 +0200
committerarchshift <admin@archshift.com>2014-05-01 02:10:38 +0200
commit3dad4e3b5cf0e5cc0c52fa28fb055ed98f912915 (patch)
tree8c941aaa7d9f3528ae9875f5bdd00648f0a2d03c
parentOpenGL 3+ on OSX with GLFW (diff)
downloadyuzu-3dad4e3b5cf0e5cc0c52fa28fb055ed98f912915.tar
yuzu-3dad4e3b5cf0e5cc0c52fa28fb055ed98f912915.tar.gz
yuzu-3dad4e3b5cf0e5cc0c52fa28fb055ed98f912915.tar.bz2
yuzu-3dad4e3b5cf0e5cc0c52fa28fb055ed98f912915.tar.lz
yuzu-3dad4e3b5cf0e5cc0c52fa28fb055ed98f912915.tar.xz
yuzu-3dad4e3b5cf0e5cc0c52fa28fb055ed98f912915.tar.zst
yuzu-3dad4e3b5cf0e5cc0c52fa28fb055ed98f912915.zip
Diffstat (limited to '')
-rw-r--r--src/citra_qt/bootmanager.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp
index 31958ac28..52b39eb27 100644
--- a/src/citra_qt/bootmanager.cpp
+++ b/src/citra_qt/bootmanager.cpp
@@ -73,11 +73,10 @@ void EmuThread::Stop()
class GGLWidgetInternal : public QGLWidget
{
public:
- GGLWidgetInternal(GRenderWindow* parent) : QGLWidget(parent)
+ GGLWidgetInternal(QGLFormat fmt, GRenderWindow* parent) : QGLWidget(parent)
{
- setAutoBufferSwap(false);
- doneCurrent();
- parent_ = parent;
+ doneCurrent();
+ parent_ = parent;
}
void paintEvent(QPaintEvent* ev)
@@ -103,8 +102,13 @@ EmuThread& GRenderWindow::GetEmuThread()
GRenderWindow::GRenderWindow(QWidget* parent) : QWidget(parent), emu_thread(this)
{
// TODO: One of these flags might be interesting: WA_OpaquePaintEvent, WA_NoBackground, WA_DontShowOnScreen, WA_DeleteOnClose
-
- child = new GGLWidgetInternal(this);
+ QGLFormat fmt;
+ fmt.setProfile(QGLFormat::CoreProfile);
+ fmt.setVersion(4,1);
+ fmt.setSampleBuffers(true);
+ fmt.setSamples(4);
+
+ child = new GGLWidgetInternal(fmt, this);
QBoxLayout* layout = new QHBoxLayout(this);
resize(VideoCore::kScreenTopWidth, VideoCore::kScreenTopHeight + VideoCore::kScreenBottomHeight);
layout->addWidget(child);