Commit ac0cf9c4 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Win build fix

parent 1b07c380
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <QDir> #include <QDir>
#include <QFile> #include <QFile>
#include <QDesktopServices> #include <QDesktopServices>
#include <QMessageBox>
#include <klocalizedstring.h> #include <klocalizedstring.h>
...@@ -86,7 +87,7 @@ int KisOpenGL::initializeContext(QOpenGLContext* s) { ...@@ -86,7 +87,7 @@ int KisOpenGL::initializeContext(QOpenGLContext* s) {
#ifndef GL_RENDERER #ifndef GL_RENDERER
# define GL_RENDERER 0x1F01 # define GL_RENDERER 0x1F01
#endif #endif
QString renderer = QString((const char*)f.glGetString(GL_RENDERER)); QString renderer = QString((const char*)f->glGetString(GL_RENDERER));
if (cfg.useOpenGL() && renderer.startsWith("Intel") && !cfg.readEntry("WarnedAboutIntel", false)) { if (cfg.useOpenGL() && renderer.startsWith("Intel") && !cfg.readEntry("WarnedAboutIntel", false)) {
QMessageBox::information(0, QMessageBox::information(0,
i18nc("@title:window", "Krita: Warning"), i18nc("@title:window", "Krita: Warning"),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment