diff --git a/src/qt/qt_hardwarerenderer.cpp b/src/qt/qt_hardwarerenderer.cpp index 6efa4809c..0659e41a5 100644 --- a/src/qt/qt_hardwarerenderer.cpp +++ b/src/qt/qt_hardwarerenderer.cpp @@ -1,4 +1,5 @@ #include "qt_hardwarerenderer.hpp" +#include extern "C" { #include <86box/86box.h> @@ -26,7 +27,7 @@ void HardwareRenderer::setRenderType(RenderType type) { format.setRenderableType(QSurfaceFormat::OpenGL); break; case RenderType::OpenGLES: - setTextureFormat(GL_RGBA); + setTextureFormat((QApplication::platformName().contains("wayland") || QApplication::platformName() == "cocoa") ? GL_RGB : GL_RGBA); format.setRenderableType(QSurfaceFormat::OpenGLES); break; }