diff options
author | Gunnar Sletta <gunnar.sletta@jollamobile.com> | 2014-08-15 09:26:16 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@jollamobile.com> | 2014-08-23 08:00:43 +0200 |
commit | 8d0e307bc7f9f4458e6ea2d2fc0d6cd25be4fda9 (patch) | |
tree | f12a065df95d54699e3266702aa7b62f707fdc33 /src/quick/scenegraph/qsgcontext_p.h | |
parent | 15ee12508ec8663ae09ebfc61cc4f0725311bdec (diff) |
Downscale textures which exceed the GL texture limit
This way they will at least render.
[ChangeLog][QtQuick] Images exceeding GL_MAX_TEXTURE_SIZE will be
downscaled to fit so they will still show.
Change-Id: I169ecac768036812b8e14265ec1a0a8902655666
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/quick/scenegraph/qsgcontext_p.h')
-rw-r--r-- | src/quick/scenegraph/qsgcontext_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgcontext_p.h b/src/quick/scenegraph/qsgcontext_p.h index b5271f9f37..70202264bf 100644 --- a/src/quick/scenegraph/qsgcontext_p.h +++ b/src/quick/scenegraph/qsgcontext_p.h @@ -126,6 +126,7 @@ public: static QSGRenderContext *from(QOpenGLContext *context); bool hasBrokenIndexBufferObjects() const { return m_brokenIBOs; } + int maxTextureSize() const { return m_maxTextureSize; } Q_SIGNALS: void initialized(); @@ -147,7 +148,7 @@ protected: QSGDistanceFieldGlyphCacheManager *m_distanceFieldCacheManager; QSet<QFontEngine *> m_fontEnginesToClean; - + int m_maxTextureSize; bool m_brokenIBOs; bool m_serializedRender; bool m_attachToGLContext; |