summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntti Määttä <antti.maatta@qt.io>2019-10-03 08:51:14 +0300
committerAntti Määttä <antti.maatta@qt.io>2019-10-03 09:12:18 +0300
commitecac36788cbcfd22d79ddab79f3f429c6b3bbe0a (patch)
treeee9cbcfe2a51d2c89f86c77ca6d2da3b15700abb
parent3af0e80dbd23ff6ad4d18093ab7aa065b16727ac (diff)
Fix asserts when using effects
Add missing break back. This doesn't fix the example, just the asserts. Task-number: QT3DS-3970 Change-Id: I6fd5e6e3c980c5b8be5911346927f5da5c4a21e9 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
-rw-r--r--src/runtimerender/Qt3DSRenderEffectSystem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtimerender/Qt3DSRenderEffectSystem.cpp b/src/runtimerender/Qt3DSRenderEffectSystem.cpp
index 5b516b8..2db30bb 100644
--- a/src/runtimerender/Qt3DSRenderEffectSystem.cpp
+++ b/src/runtimerender/Qt3DSRenderEffectSystem.cpp
@@ -1598,6 +1598,7 @@ struct SEffectSystem : public IEffectSystem
errors);
if (!errors.isEmpty())
inEffect.SetError(m_CoreContext.GetStringTable().RegisterStr(errors));
+ break;
case CommandTypes::ApplyInstanceValue:
if (theCurrentShader)
ApplyInstanceValue(inEffect, inClass, *theCurrentShader->m_Shader,