mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-06-12 12:18:22 -04:00
ok fine windowshit
This commit is contained in:
parent
c46022049c
commit
2389166618
2 changed files with 9 additions and 11 deletions
|
|
@ -1082,7 +1082,8 @@ bool GRenderWindow::LoadOpenGL() {
|
|||
}
|
||||
|
||||
QStringList GRenderWindow::GetUnsupportedGLExtensions() const {
|
||||
QStringList missing_ext;
|
||||
QStringList missing_ext{};
|
||||
#ifdef HAS_OPENGL
|
||||
// Extensions required to support some texture formats.
|
||||
if (!GLAD_GL_EXT_texture_compression_s3tc)
|
||||
missing_ext.append(QStringLiteral("EXT_texture_compression_s3tc"));
|
||||
|
|
@ -1092,6 +1093,7 @@ QStringList GRenderWindow::GetUnsupportedGLExtensions() const {
|
|||
LOG_ERROR(Frontend, "GPU does not support all required extensions");
|
||||
for (const QString& ext : missing_ext)
|
||||
LOG_ERROR(Frontend, "Unsupported GL extension: {}", ext.toStdString());
|
||||
#endif
|
||||
return missing_ext;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -59,20 +59,16 @@ private:
|
|||
};
|
||||
|
||||
bool EmuWindow_SDL2_GL::SupportsRequiredGLExtensions() {
|
||||
std::vector<std::string_view> unsupported_ext;
|
||||
|
||||
std::vector<std::string_view> unsupported_ext{};
|
||||
#ifdef HAS_OPENGL
|
||||
// Extensions required to support some texture formats.
|
||||
if (!GLAD_GL_EXT_texture_compression_s3tc) {
|
||||
if (!GLAD_GL_EXT_texture_compression_s3tc)
|
||||
unsupported_ext.push_back("EXT_texture_compression_s3tc");
|
||||
}
|
||||
if (!GLAD_GL_ARB_texture_compression_rgtc) {
|
||||
if (!GLAD_GL_ARB_texture_compression_rgtc)
|
||||
unsupported_ext.push_back("ARB_texture_compression_rgtc");
|
||||
}
|
||||
|
||||
for (const auto& extension : unsupported_ext) {
|
||||
for (const auto& extension : unsupported_ext)
|
||||
LOG_CRITICAL(Frontend, "Unsupported GL extension: {}", extension);
|
||||
}
|
||||
|
||||
#endif
|
||||
return unsupported_ext.empty();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue