mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
YACReaderFlowGL: initialize data member texture pointers
Moving the initialization of defaultTexture out of the member initializer list gets rid of a GCC's -Wreorder warning. Initialize other texture pointers to improve safety and consistency.
This commit is contained in:
parent
b87be81037
commit
21c3bda5d4
@ -190,7 +190,7 @@ struct Preset pressetYACReaderFlowDownConfig = {
|
|||||||
};
|
};
|
||||||
/*Constructor*/
|
/*Constructor*/
|
||||||
YACReaderFlowGL::YACReaderFlowGL(QWidget *parent, struct Preset p)
|
YACReaderFlowGL::YACReaderFlowGL(QWidget *parent, struct Preset p)
|
||||||
: QOpenGLWidget(/*QOpenGLWidget migration QGLFormat(QGL::SampleBuffers),*/ parent), numObjects(0), lazyPopulateObjects(-1), defaultTexture(nullptr), hasBeenInitialized(false), bUseVSync(false), flowRightToLeft(false)
|
: QOpenGLWidget(/*QOpenGLWidget migration QGLFormat(QGL::SampleBuffers),*/ parent), numObjects(0), lazyPopulateObjects(-1), hasBeenInitialized(false), bUseVSync(false), flowRightToLeft(false)
|
||||||
{
|
{
|
||||||
updateCount = 0;
|
updateCount = 0;
|
||||||
config = p;
|
config = p;
|
||||||
|
@ -119,9 +119,9 @@ protected:
|
|||||||
int updateCount;
|
int updateCount;
|
||||||
int fontSize;
|
int fontSize;
|
||||||
|
|
||||||
QOpenGLTexture *defaultTexture;
|
QOpenGLTexture *defaultTexture = nullptr;
|
||||||
QOpenGLTexture *markTexture;
|
QOpenGLTexture *markTexture = nullptr;
|
||||||
QOpenGLTexture *readingTexture;
|
QOpenGLTexture *readingTexture = nullptr;
|
||||||
void initializeGL();
|
void initializeGL();
|
||||||
void paintGL();
|
void paintGL();
|
||||||
void timerEvent(QTimerEvent *);
|
void timerEvent(QTimerEvent *);
|
||||||
|
Loading…
Reference in New Issue
Block a user