mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-08-31 17:29:22 +01:00
gl_rasterizer: Remove extension booleans
This commit is contained in:
parent
5a9a84994a
commit
22c7c710b4
4 changed files with 4 additions and 16 deletions
|
@ -88,19 +88,6 @@ RasterizerOpenGL::RasterizerOpenGL(Core::Frontend::EmuWindow& window, ScreenInfo
|
||||||
state.texture_units[i].sampler = texture_samplers[i].sampler.handle;
|
state.texture_units[i].sampler = texture_samplers[i].sampler.handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
GLint ext_num;
|
|
||||||
glGetIntegerv(GL_NUM_EXTENSIONS, &ext_num);
|
|
||||||
for (GLint i = 0; i < ext_num; i++) {
|
|
||||||
const std::string_view extension{
|
|
||||||
reinterpret_cast<const char*>(glGetStringi(GL_EXTENSIONS, i))};
|
|
||||||
|
|
||||||
if (extension == "GL_ARB_direct_state_access") {
|
|
||||||
has_ARB_direct_state_access = true;
|
|
||||||
} else if (extension == "GL_ARB_multi_bind") {
|
|
||||||
has_ARB_multi_bind = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
OpenGLState::ApplyDefaultState();
|
OpenGLState::ApplyDefaultState();
|
||||||
|
|
||||||
// Create render framebuffer
|
// Create render framebuffer
|
||||||
|
|
|
@ -193,9 +193,6 @@ private:
|
||||||
/// but are needed for correct emulation
|
/// but are needed for correct emulation
|
||||||
void CheckExtensions();
|
void CheckExtensions();
|
||||||
|
|
||||||
bool has_ARB_direct_state_access = false;
|
|
||||||
bool has_ARB_multi_bind = false;
|
|
||||||
|
|
||||||
OpenGLState state;
|
OpenGLState state;
|
||||||
|
|
||||||
RasterizerCacheOpenGL res_cache;
|
RasterizerCacheOpenGL res_cache;
|
||||||
|
|
|
@ -518,6 +518,8 @@ void GMainWindow::OnDisplayTitleBars(bool show) {
|
||||||
QStringList GMainWindow::GetUnsupportedGLExtensions() {
|
QStringList GMainWindow::GetUnsupportedGLExtensions() {
|
||||||
QStringList unsupported_ext;
|
QStringList unsupported_ext;
|
||||||
|
|
||||||
|
if (!GLAD_GL_ARB_direct_state_access)
|
||||||
|
unsupported_ext.append("ARB_direct_state_access");
|
||||||
if (!GLAD_GL_ARB_vertex_type_10f_11f_11f_rev)
|
if (!GLAD_GL_ARB_vertex_type_10f_11f_11f_rev)
|
||||||
unsupported_ext.append("ARB_vertex_type_10f_11f_11f_rev");
|
unsupported_ext.append("ARB_vertex_type_10f_11f_11f_rev");
|
||||||
if (!GLAD_GL_ARB_texture_mirror_clamp_to_edge)
|
if (!GLAD_GL_ARB_texture_mirror_clamp_to_edge)
|
||||||
|
|
|
@ -111,6 +111,8 @@ void EmuWindow_SDL2::Fullscreen() {
|
||||||
bool EmuWindow_SDL2::SupportsRequiredGLExtensions() {
|
bool EmuWindow_SDL2::SupportsRequiredGLExtensions() {
|
||||||
std::vector<std::string> unsupported_ext;
|
std::vector<std::string> unsupported_ext;
|
||||||
|
|
||||||
|
if (!GLAD_GL_ARB_direct_state_access)
|
||||||
|
unsupported_ext.push_back("ARB_direct_state_access");
|
||||||
if (!GLAD_GL_ARB_vertex_type_10f_11f_11f_rev)
|
if (!GLAD_GL_ARB_vertex_type_10f_11f_11f_rev)
|
||||||
unsupported_ext.push_back("ARB_vertex_type_10f_11f_11f_rev");
|
unsupported_ext.push_back("ARB_vertex_type_10f_11f_11f_rev");
|
||||||
if (!GLAD_GL_ARB_texture_mirror_clamp_to_edge)
|
if (!GLAD_GL_ARB_texture_mirror_clamp_to_edge)
|
||||||
|
|
Loading…
Reference in a new issue