QFrameBufferObject::takeTexture also leaks with Qt 5.15
This commit is contained in:
parent
5ab536f0e3
commit
86e438a0ed
@ -18,15 +18,12 @@
|
||||
QSK_QT_PRIVATE_BEGIN
|
||||
#include <private/qsgplaintexture_p.h>
|
||||
#include <private/qquickwindow_p.h>
|
||||
#include <private/qopenglframebufferobject_p.h>
|
||||
QSK_QT_PRIVATE_END
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 )
|
||||
|
||||
#include <qquickopenglutils.h>
|
||||
|
||||
QSK_QT_PRIVATE_BEGIN
|
||||
#include <private/qopenglframebufferobject_p.h>
|
||||
QSK_QT_PRIVATE_END
|
||||
#endif
|
||||
|
||||
static GLuint qskTakeTexture( QOpenGLFramebufferObject& fbo )
|
||||
{
|
||||
@ -67,15 +64,6 @@ static GLuint qskTakeTexture( QOpenGLFramebufferObject& fbo )
|
||||
return textureId;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
static GLuint qskTakeTexture( QOpenGLFramebufferObject& fbo )
|
||||
{
|
||||
return fbo.takeTexture();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
namespace
|
||||
{
|
||||
const quint8 imageRole = 250; // reserved for internal use
|
||||
|
Loading…
x
Reference in New Issue
Block a user