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
|
QSK_QT_PRIVATE_BEGIN
|
||||||
#include <private/qsgplaintexture_p.h>
|
#include <private/qsgplaintexture_p.h>
|
||||||
#include <private/qquickwindow_p.h>
|
#include <private/qquickwindow_p.h>
|
||||||
|
#include <private/qopenglframebufferobject_p.h>
|
||||||
QSK_QT_PRIVATE_END
|
QSK_QT_PRIVATE_END
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 )
|
#if QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 )
|
||||||
|
|
||||||
#include <qquickopenglutils.h>
|
#include <qquickopenglutils.h>
|
||||||
|
#endif
|
||||||
QSK_QT_PRIVATE_BEGIN
|
|
||||||
#include <private/qopenglframebufferobject_p.h>
|
|
||||||
QSK_QT_PRIVATE_END
|
|
||||||
|
|
||||||
static GLuint qskTakeTexture( QOpenGLFramebufferObject& fbo )
|
static GLuint qskTakeTexture( QOpenGLFramebufferObject& fbo )
|
||||||
{
|
{
|
||||||
@ -67,15 +64,6 @@ static GLuint qskTakeTexture( QOpenGLFramebufferObject& fbo )
|
|||||||
return textureId;
|
return textureId;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
static GLuint qskTakeTexture( QOpenGLFramebufferObject& fbo )
|
|
||||||
{
|
|
||||||
return fbo.takeTexture();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
const quint8 imageRole = 250; // reserved for internal use
|
const quint8 imageRole = 250; // reserved for internal use
|
||||||
|
Loading…
x
Reference in New Issue
Block a user