QFrameBufferObject::takeTexture also leaks with Qt 5.15

This commit is contained in:
Uwe Rathmann 2022-06-01 17:50:16 +02:00
parent 5ab536f0e3
commit 86e438a0ed

View File

@ -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