diff options
author | Tony Wasserka <neobrainx@gmail.com> | 2014-10-12 15:18:27 +0200 |
---|---|---|
committer | Tony Wasserka <neobrainx@gmail.com> | 2014-10-12 15:18:27 +0200 |
commit | e4905143c8bc1ea8a2c736e025db234fdd82aea8 (patch) | |
tree | 9eb2c6feaa64d889b9b46b4b5bedd1bb4e185ec9 /src/citra | |
parent | Merge pull request #119 from lioncash/warn (diff) | |
parent | OpenGL renderer: Request a forward compatible context in citra-qt (diff) | |
download | yuzu-e4905143c8bc1ea8a2c736e025db234fdd82aea8.tar yuzu-e4905143c8bc1ea8a2c736e025db234fdd82aea8.tar.gz yuzu-e4905143c8bc1ea8a2c736e025db234fdd82aea8.tar.bz2 yuzu-e4905143c8bc1ea8a2c736e025db234fdd82aea8.tar.lz yuzu-e4905143c8bc1ea8a2c736e025db234fdd82aea8.tar.xz yuzu-e4905143c8bc1ea8a2c736e025db234fdd82aea8.tar.zst yuzu-e4905143c8bc1ea8a2c736e025db234fdd82aea8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/citra/emu_window/emu_window_glfw.cpp | 3 | ||||
-rw-r--r-- | src/citra_qt/bootmanager.cpp | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/citra/emu_window/emu_window_glfw.cpp b/src/citra/emu_window/emu_window_glfw.cpp index 661521eb7..6cdba2b87 100644 --- a/src/citra/emu_window/emu_window_glfw.cpp +++ b/src/citra/emu_window/emu_window_glfw.cpp @@ -42,12 +42,9 @@ EmuWindow_GLFW::EmuWindow_GLFW() { } glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2); - -#if EMU_PLATFORM == PLATFORM_MACOSX // GLFW on OSX requires these window hints to be set to create a 3.2+ GL context. glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); -#endif m_render_window = glfwCreateWindow(VideoCore::kScreenTopWidth, (VideoCore::kScreenTopHeight + VideoCore::kScreenBottomHeight), diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp index 5dce9e570..0430aa1ed 100644 --- a/src/citra_qt/bootmanager.cpp +++ b/src/citra_qt/bootmanager.cpp @@ -113,10 +113,10 @@ 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 QGLFormat fmt; - fmt.setProfile(QGLFormat::CoreProfile); fmt.setVersion(3,2); - fmt.setSampleBuffers(true); - fmt.setSamples(4); + fmt.setProfile(QGLFormat::CoreProfile); + // Requests a forward-compatible context, which is required to get a 3.2+ context on OS X + fmt.setOption(QGL::NoDeprecatedFunctions); child = new GGLWidgetInternal(fmt, this); QBoxLayout* layout = new QHBoxLayout(this); |