mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	video_core: Bump OpenGL version to 4.3 on desktop
* The current backend heavily depends on many extensions for shadow rendering and texture cubes in the fragment shaders. All these extensions were incorporated to core in 4.3. Support is practically ubiquitous and requiring support for it makes things a lot easier
This commit is contained in:
		
							parent
							
								
									02d1fa2e0f
								
							
						
					
					
						commit
						025cd31420
					
				
					 6 changed files with 21 additions and 19 deletions
				
			
		|  | @ -9,7 +9,7 @@ | |||
| #include <QOffscreenSurface> | ||||
| #include <QOpenGLContext> | ||||
| #include <QOpenGLFunctions> | ||||
| #include <QOpenGLFunctions_3_3_Core> | ||||
| #include <QOpenGLFunctions_4_3_Core> | ||||
| #include <fmt/format.h> | ||||
| #include "citra_qt/bootmanager.h" | ||||
| #include "citra_qt/main.h" | ||||
|  | @ -143,7 +143,7 @@ void OpenGLWindow::Present() { | |||
|         VideoCore::g_renderer->TryPresent(100); | ||||
|     } | ||||
|     context->swapBuffers(this); | ||||
|     auto f = context->versionFunctions<QOpenGLFunctions_3_3_Core>(); | ||||
|     auto f = context->versionFunctions<QOpenGLFunctions_4_3_Core>(); | ||||
|     f->glFinish(); | ||||
|     QWindow::requestUpdate(); | ||||
| } | ||||
|  |  | |||
|  | @ -2441,7 +2441,7 @@ int main(int argc, char* argv[]) { | |||
|     QCoreApplication::setApplicationName(QStringLiteral("Citra")); | ||||
| 
 | ||||
|     QSurfaceFormat format; | ||||
|     format.setVersion(3, 3); | ||||
|     format.setVersion(4, 3); | ||||
|     format.setProfile(QSurfaceFormat::CoreProfile); | ||||
|     format.setSwapInterval(0); | ||||
|     // TODO: expose a setting for buffer value (ie default/single/double/triple)
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue