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*/
|
||||
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;
|
||||
config = p;
|
||||
|
@ -119,9 +119,9 @@ protected:
|
||||
int updateCount;
|
||||
int fontSize;
|
||||
|
||||
QOpenGLTexture *defaultTexture;
|
||||
QOpenGLTexture *markTexture;
|
||||
QOpenGLTexture *readingTexture;
|
||||
QOpenGLTexture *defaultTexture = nullptr;
|
||||
QOpenGLTexture *markTexture = nullptr;
|
||||
QOpenGLTexture *readingTexture = nullptr;
|
||||
void initializeGL();
|
||||
void paintGL();
|
||||
void timerEvent(QTimerEvent *);
|
||||
|
Loading…
Reference in New Issue
Block a user