Fixed compile errors.

This commit is contained in:
leo 2017-12-30 12:49:50 -08:00
parent 5d637b1cad
commit f3b392b4fb
3 changed files with 4 additions and 4 deletions

View file

@ -116,7 +116,6 @@ PFNGLVALIDATEPROGRAMPROC lcValidateProgram;
PFNGLVERTEXATTRIBPOINTERPROC lcVertexAttribPointer;
PFNGLTEXIMAGE2DMULTISAMPLEPROC lcTexImage2DMultisample;
PFNGLBLITFRAMEBUFFERPROC lcBlitFramebuffer;
#endif
@ -341,7 +340,6 @@ void lcInitializeGLExtensions(const QGLContext* Context)
{
#ifdef LC_LOAD_GLEXTENSIONS
lcTexImage2DMultisample = (PFNGLTEXIMAGE2DMULTISAMPLEPROC)Context->getProcAddress("glTexImage2DMultisample");
lcBlitFramebuffer = (PFNGLBLITFRAMEBUFFERPROC)Context->getProcAddress("glBlitFramebuffer");
#endif
gSupportsTexImage2DMultisample = true;

View file

@ -121,7 +121,6 @@ extern PFNGLVALIDATEPROGRAMPROC lcValidateProgram;
extern PFNGLVERTEXATTRIBPOINTERPROC lcVertexAttribPointer;
extern PFNGLTEXIMAGE2DMULTISAMPLEPROC lcTexImage2DMultisample;
extern PFNGLBLITFRAMEBUFFERPROC lcBlitFramebuffer;
#define glBindBuffer lcBindBufferARB
#define glDeleteBuffers lcDeleteBuffersARB
@ -228,6 +227,5 @@ extern PFNGLBLITFRAMEBUFFERPROC lcBlitFramebuffer;
#define glVertexAttribPointer lcVertexAttribPointer
#define glTexImage2DMultisample lcTexImage2DMultisample
#define glBlitFramebuffer lcBlitFramebuffer
#endif

View file

@ -33,7 +33,11 @@ public:
{
mRefCount.ref();
#if (QT_VERSION >= QT_VERSION_CHECK(5, 3, 0) || QT_VERSION < QT_VERSION_CHECK(5, 0, 0) )
if (mRefCount == 1)
#else
if (mRefCount.load() == 1)
#endif
Load();
}