mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
GLContext: Try GL versions 3.2-4.6 when getting a context
GLX previously was only creating a 4.0 context.
This commit is contained in:
@ -4,8 +4,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/WindowSystemInfo.h"
|
||||
@ -58,4 +60,8 @@ protected:
|
||||
u32 m_backbuffer_width = 0;
|
||||
u32 m_backbuffer_height = 0;
|
||||
bool m_is_shared = false;
|
||||
|
||||
// A list of desktop OpenGL versions to attempt to create a context for.
|
||||
// (4.6-3.2, geometry shaders is a minimum requirement since we're using core profile).
|
||||
static const std::array<std::pair<int, int>, 9> s_desktop_opengl_versions;
|
||||
};
|
||||
|
Reference in New Issue
Block a user