소스 검색

Update OpenGL's backend version from 3.3 to 4.3

FernandoS27 7 년 전
부모
커밋
377c60645c
5개의 변경된 파일28개의 추가작업 그리고 8개의 파일을 삭제
  1. 12 2
      externals/glad/include/glad/glad.h
  2. 12 2
      externals/glad/src/glad.c
  3. 1 1
      src/yuzu/bootmanager.cpp
  4. 2 2
      src/yuzu/main.cpp
  5. 1 1
      src/yuzu_cmd/emu_window/emu_window_sdl2.cpp

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 12 - 2
externals/glad/include/glad/glad.h


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 12 - 2
externals/glad/src/glad.c


+ 1 - 1
src/yuzu/bootmanager.cpp

@@ -310,7 +310,7 @@ void GRenderWindow::InitRenderTarget() {
     // TODO: One of these flags might be interesting: WA_OpaquePaintEvent, WA_NoBackground,
     // WA_DontShowOnScreen, WA_DeleteOnClose
     QGLFormat fmt;
-    fmt.setVersion(3, 3);
+    fmt.setVersion(4, 3);
     fmt.setProfile(QGLFormat::CoreProfile);
     fmt.setSwapInterval(false);
 

+ 2 - 2
src/yuzu/main.cpp

@@ -562,8 +562,8 @@ bool GMainWindow::LoadROM(const QString& filename) {
     render_window->MakeCurrent();
 
     if (!gladLoadGL()) {
-        QMessageBox::critical(this, tr("Error while initializing OpenGL 3.3 Core!"),
-                              tr("Your GPU may not support OpenGL 3.3, or you do not "
+        QMessageBox::critical(this, tr("Error while initializing OpenGL 4.3 Core!"),
+                              tr("Your GPU may not support OpenGL 4.3, or you do not "
                                  "have the latest graphics driver."));
         return false;
     }

+ 1 - 1
src/yuzu_cmd/emu_window/emu_window_sdl2.cpp

@@ -157,7 +157,7 @@ EmuWindow_SDL2::EmuWindow_SDL2(bool fullscreen) {
         exit(1);
     }
 
-    SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
+    SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4);
     SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3);
     SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
     SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.