From 92b58f70b6fd55b01e6325953c778cb4ee286958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sat, 24 Jan 2015 11:40:20 +0100 Subject: [PATCH] fixed crash in YACReader's go to flow when trying to load read status textures --- common/yacreader_flow_gl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/yacreader_flow_gl.cpp b/common/yacreader_flow_gl.cpp index 8a153c21..d74f9ecb 100644 --- a/common/yacreader_flow_gl.cpp +++ b/common/yacreader_flow_gl.cpp @@ -297,13 +297,13 @@ void YACReaderFlowGL::initializeGL() defaultTexture = new QOpenGLTexture(QImage(":/images/defaultCover.png")); defaultTexture->setMinMagFilters(QOpenGLTexture::LinearMipMapLinear,QOpenGLTexture::LinearMipMapLinear); - +#ifdef YACREADER_LIBRARY markTexture = new QOpenGLTexture(QImage(":/images/readRibbon.png")); markTexture->setMinMagFilters(QOpenGLTexture::LinearMipMapLinear,QOpenGLTexture::LinearMipMapLinear); readingTexture = new QOpenGLTexture(QImage(":/images/readingRibbon.png")); readingTexture->setMinMagFilters(QOpenGLTexture::LinearMipMapLinear,QOpenGLTexture::LinearMipMapLinear); - +#endif if(lazyPopulateObjects!=-1) populate(lazyPopulateObjects);