summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2015-06-24 08:49:13 +0100
committerSean Harmer <sean.harmer@kdab.com>2015-07-04 13:31:55 +0000
commita05d8c73ffd38414c22be801d6c9d27c1d34ab93 (patch)
treebe70ef92821d483a6e626fd2e87fe007049814a7 /src/gui
parentfdcea3a7cac159bb017d48eb6038bd72ebb920b4 (diff)
Fix accidental fall through in QOpenGLTexture::set[Compressed]Data()
Task-number: QTBUG-46826 Change-Id: Ie04e69cc5af05650ec6aa42f534f494049a54ee8 Reviewed-by: James Turner <james.turner@kdab.com> Reviewed-by: Mike Krus <mike.krus@kdab.com> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/opengl/qopengltexture.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/opengl/qopengltexture.cpp b/src/gui/opengl/qopengltexture.cpp
index baa702a982..5edaddcd6a 100644
--- a/src/gui/opengl/qopengltexture.cpp
+++ b/src/gui/opengl/qopengltexture.cpp
@@ -1112,6 +1112,7 @@ void QOpenGLTexturePrivate::setData(int mipLevel, int layer, QOpenGLTexture::Cub
mipLevelSize(mipLevel, dimensions[0]),
1,
sourceFormat, sourceType, data, options);
+ break;
case QOpenGLTexture::Target2D:
Q_UNUSED(layer);
@@ -1210,6 +1211,7 @@ void QOpenGLTexturePrivate::setCompressedData(int mipLevel, int layer, QOpenGLTe
mipLevelSize(mipLevel, dimensions[0]),
1,
format, dataSize, data, options);
+ break;
case QOpenGLTexture::Target2D:
Q_UNUSED(layer);