Fix some warnings in Qt code
This commit is contained in:
@@ -254,7 +254,7 @@ OpenGLRenderer::initializeExtensions()
|
|||||||
|
|
||||||
glBufferStorage = (PFNGLBUFFERSTORAGEEXTPROC_LOCAL) context->getProcAddress(context->hasExtension("GL_EXT_buffer_storage") ? "glBufferStorageEXT" : "glBufferStorage");
|
glBufferStorage = (PFNGLBUFFERSTORAGEEXTPROC_LOCAL) context->getProcAddress(context->hasExtension("GL_EXT_buffer_storage") ? "glBufferStorageEXT" : "glBufferStorage");
|
||||||
if (!glBufferStorage)
|
if (!glBufferStorage)
|
||||||
glBufferStorage = glBufferStorage = (PFNGLBUFFERSTORAGEEXTPROC_LOCAL) context->getProcAddress("glBufferStorage");
|
glBufferStorage = (PFNGLBUFFERSTORAGEEXTPROC_LOCAL) context->getProcAddress("glBufferStorage");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@@ -77,8 +77,8 @@ private:
|
|||||||
static constexpr int BUFFERBYTES = 16777216; /* Pixel is 4 bytes. */
|
static constexpr int BUFFERBYTES = 16777216; /* Pixel is 4 bytes. */
|
||||||
static constexpr int BUFFERCOUNT = 3; /* How many buffers to use for pixel transfer (2-3 is commonly recommended). */
|
static constexpr int BUFFERCOUNT = 3; /* How many buffers to use for pixel transfer (2-3 is commonly recommended). */
|
||||||
|
|
||||||
OpenGLOptions *options;
|
|
||||||
QTimer *renderTimer;
|
QTimer *renderTimer;
|
||||||
|
OpenGLOptions *options;
|
||||||
|
|
||||||
QString glslVersion;
|
QString glslVersion;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user