diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2018-12-21 14:27:48 +0100 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2018-12-21 15:12:01 +0000 |
commit | 080f9d0b99b0d2e7e179a41d901096e595000448 (patch) | |
tree | 5fb5abda642ac3152dc06d6be192e288b6924578 | |
parent | ee7d7c3d7d061902d1ad5409e33f141da61f0b07 (diff) | |
download | qt3d-080f9d0b99b0d2e7e179a41d901096e595000448.tar.gz |
texture_property_updates test: specify texture format
It used to work before because it would default to RGBA_Unorm
but that should be either deduced when using a QTextureLoader
or specified when using a raw QTexture2D
Change-Id: I930ce490a393f48b870d4e2c1f15e0551c468f2d
Reviewed-by: Mike Krus <mike.krus@kdab.com>
-rw-r--r-- | tests/manual/texture_property_updates/main.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/manual/texture_property_updates/main.qml b/tests/manual/texture_property_updates/main.qml index ebefdc725..f1256c75b 100644 --- a/tests/manual/texture_property_updates/main.qml +++ b/tests/manual/texture_property_updates/main.qml @@ -91,12 +91,14 @@ QQ2.Item { } readonly property Texture texture3: Texture2D { + format: Texture.RGBA8_UNorm textureImages: TextureImage { source: textureSource } } readonly property Texture texture4: Texture2D { + format: Texture.RGBA8_UNorm textureImages: TextureImage { source: textureSource } |