Commit ee5df6ef authored by Dmitry Kazakov's avatar Dmitry Kazakov Committed by Blackbeard (alberto flores)

Possibly fix a crash on systems with openGL 2.1

OpenGL 2.1 systems are supported, but Small Colro Selector is not
available for them, because it doesn't have legacy shaders (needs
to be implemented).

CCBUG:408872
parent c951c561
......@@ -25,6 +25,7 @@
#include <KoDockRegistry.h>
#include "smallcolorselector_dock.h"
#include "opengl/kis_opengl.h"
K_PLUGIN_FACTORY_WITH_JSON(SmallColorSelectorPluginFactory, "krita_smallcolorselector.json", registerPlugin<SmallColorSelectorPlugin>();)
......@@ -54,12 +55,12 @@ public:
}
};
SmallColorSelectorPlugin::SmallColorSelectorPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
KoDockRegistry::instance()->add(new SmallColorSelectorDockFactory());
if (KisOpenGL::hasOpenGL3()) {
KoDockRegistry::instance()->add(new SmallColorSelectorDockFactory());
}
}
SmallColorSelectorPlugin::~SmallColorSelectorPlugin()
......
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