summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar FernandoS272018-11-17 18:04:50 -0400
committerGravatar FernandoS272018-11-21 11:43:17 -0400
commit377c60645c493aabff83eaa245f3431a261657cd (patch)
treebadca5bb43114406004a09d610e1d8c959fffad8 /src
parentMerge pull request #1667 from DarkLordZach/swkbd (diff)
downloadyuzu-377c60645c493aabff83eaa245f3431a261657cd.tar.gz
yuzu-377c60645c493aabff83eaa245f3431a261657cd.tar.xz
yuzu-377c60645c493aabff83eaa245f3431a261657cd.zip
Update OpenGL's backend version from 3.3 to 4.3
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/bootmanager.cpp2
-rw-r--r--src/yuzu/main.cpp4
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index 39eef8858..384e17921 100644
--- a/src/yuzu/bootmanager.cpp
+++ b/src/yuzu/bootmanager.cpp
@@ -310,7 +310,7 @@ void GRenderWindow::InitRenderTarget() {
310 // TODO: One of these flags might be interesting: WA_OpaquePaintEvent, WA_NoBackground, 310 // TODO: One of these flags might be interesting: WA_OpaquePaintEvent, WA_NoBackground,
311 // WA_DontShowOnScreen, WA_DeleteOnClose 311 // WA_DontShowOnScreen, WA_DeleteOnClose
312 QGLFormat fmt; 312 QGLFormat fmt;
313 fmt.setVersion(3, 3); 313 fmt.setVersion(4, 3);
314 fmt.setProfile(QGLFormat::CoreProfile); 314 fmt.setProfile(QGLFormat::CoreProfile);
315 fmt.setSwapInterval(false); 315 fmt.setSwapInterval(false);
316 316
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 9e13bbf7c..451a3fafd 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -562,8 +562,8 @@ bool GMainWindow::LoadROM(const QString& filename) {
562 render_window->MakeCurrent(); 562 render_window->MakeCurrent();
563 563
564 if (!gladLoadGL()) { 564 if (!gladLoadGL()) {
565 QMessageBox::critical(this, tr("Error while initializing OpenGL 3.3 Core!"), 565 QMessageBox::critical(this, tr("Error while initializing OpenGL 4.3 Core!"),
566 tr("Your GPU may not support OpenGL 3.3, or you do not " 566 tr("Your GPU may not support OpenGL 4.3, or you do not "
567 "have the latest graphics driver.")); 567 "have the latest graphics driver."));
568 return false; 568 return false;
569 } 569 }
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
index a9ad92a80..d53d2e3ce 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
@@ -157,7 +157,7 @@ EmuWindow_SDL2::EmuWindow_SDL2(bool fullscreen) {
157 exit(1); 157 exit(1);
158 } 158 }
159 159
160 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); 160 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4);
161 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3); 161 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3);
162 SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); 162 SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
163 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); 163 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);