Commit c3acfb83 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Deinitialize internal canvas structures when switching canvas type

parent 56a0b7e2
......@@ -410,6 +410,11 @@ void KisCanvas2::createOpenGLCanvas()
void KisCanvas2::createCanvas(bool useOpenGL)
{
m_d->prescaledProjection = 0;
m_d->openGLImageTextures = 0;
m_d->frameCache = 0;
KisConfig cfg;
QDesktopWidget dw;
const KoColorProfile *profile = cfg.displayProfile(dw.screenNumber(imageView()));
......
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