diff options
author | Michael Brasser <michael.brasser@live.com> | 2014-04-22 21:19:50 -0500 |
---|---|---|
committer | Michael Brasser <michael.brasser@live.com> | 2014-08-07 21:36:14 +0200 |
commit | ee616b3905106a3eedef9ee964ab283ef45c7dbc (patch) | |
tree | 8cef0f09a44419e88acf21ad893bbbfadb5c8af1 /src/quick/items/qquickitemsmodule.cpp | |
parent | 6b31418a1b5d9be47df5ed61747e8a5fb225acfa (diff) |
Allow simple ShaderEffects to be batched by the renderer.
Identical ShaderEffects that use the standard vertex shader with a
single source texture, and that set supportsAtlasTextures, are now
candidates for batching.
Task-number: QTBUG-37914
Change-Id: Ib0ce58647a8c7c48e88bd84cf2645f1a8f28691f
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/quick/items/qquickitemsmodule.cpp')
-rw-r--r-- | src/quick/items/qquickitemsmodule.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/qquickitemsmodule.cpp b/src/quick/items/qquickitemsmodule.cpp index 22a6eeb4a5..2951fc70b9 100644 --- a/src/quick/items/qquickitemsmodule.cpp +++ b/src/quick/items/qquickitemsmodule.cpp @@ -271,6 +271,7 @@ static void qt_quickitems_defineModule(const char *uri, int major, int minor) qmlRegisterType<QQuickItem, 2>(uri, 2, 4, "Item"); qmlRegisterType<QQuickMouseArea, 1>(uri, 2, 4, "MouseArea"); + qmlRegisterType<QQuickShaderEffect, 1>(uri, 2, 4, "ShaderEffect"); } static void initResources() |