Some build fixes for GCC 13.2.0 and Clang 18.1.1 (#41)

This commit is contained in:
Reg Tiangha
2024-03-21 18:49:55 -06:00
committed by PabloMK7
parent 7ac37da6e3
commit 0d94f4a833
3 changed files with 7 additions and 5 deletions

View File

@@ -22,7 +22,8 @@ QString GetOpenGLRenderer() {
QOpenGLContext context;
if (context.create()) {
context.makeCurrent(&surface);
return QString::fromUtf8(context.functions()->glGetString(GL_RENDERER));
return QString::fromUtf8(
reinterpret_cast<const char*>(context.functions()->glGetString(GL_RENDERER)));
} else {
return QStringLiteral("");
}