renderTaraget and renderStrategy are not allowed to be modified once
context was initialized.
Change-Id: Ic0aa493b4e686a063c318a1d1ec912c176e47ed4
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
{
Q_D(QQuickCanvasItem);
if (d->renderTarget != target) {
{
Q_D(QQuickCanvasItem);
if (d->renderTarget != target) {
- if (d->contextInitialized) // target not changeable once context is active
+ if (d->contextInitialized) {
+ qmlInfo(this) << "Canvas:renderTarget not changeble once context is active.";
d->renderTarget = target;
emit renderTargetChanged();
d->renderTarget = target;
emit renderTargetChanged();
{
Q_D(QQuickCanvasItem);
if (d->renderStrategy != strategy) {
{
Q_D(QQuickCanvasItem);
if (d->renderStrategy != strategy) {
- if (d->contextInitialized) // Render strategy not changeable once context is active
+ if (d->contextInitialized) {
+ qmlInfo(this) << "Canvas:renderStrategy not changeable once context is active.";
d->renderStrategy = strategy;
emit renderStrategyChanged();
d->renderStrategy = strategy;
emit renderStrategyChanged();