Add a cast to glTexImage2D to keep QNX happy
The internalformat parameter seems to be GLenum (unsigned int) on QNX based on the error message in the linked bug report. The standard is GLint, though. To keep everyone happy, add a cast. Task-number: QTBUG-45346 Change-Id: I57fece7b381e0d02acc842a21b1edc5451ea0224 Reviewed-by: Sérgio Martins <sergio.martins@kdab.com> Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
This commit is contained in:
parent
e7e580412e
commit
cd61b6c969
@ -171,7 +171,7 @@ QOpenGLTextureHelper::QOpenGLTextureHelper(QOpenGLContext *context)
|
||||
GetTexParameteriv = ::glGetTexParameteriv;
|
||||
GetTexParameterfv = ::glGetTexParameterfv;
|
||||
GetTexImage = 0;
|
||||
TexImage2D = ::glTexImage2D;
|
||||
TexImage2D = reinterpret_cast<void (QOPENGLF_APIENTRYP)(GLenum , GLint , GLint , GLsizei , GLsizei , GLint , GLenum , GLenum , const GLvoid *)>(::glTexImage2D);
|
||||
TexImage1D = 0;
|
||||
TexParameteriv = ::glTexParameteriv;
|
||||
TexParameteri = ::glTexParameteri;
|
||||
|
Loading…
Reference in New Issue
Block a user