Re: [Interest] Quick2 ShaderEffect: source or provider missing when binding textures

2013-11-08 Thread Ola Røer Thorsen
Hi Gunnar,

thanks for the reply!

Well why am I drawing without data.. There's lots of things to learn to get
the most out of Quick2. :-)

Your suggestion there solved it for me, i'm testing on Image.Ready now
and it also fixed my next issue of to prevent showing black textures before
the image was loaded. The message is gone from the log too :-)

Best regards,
Ola



2013/11/7 Sletta Gunnar gunnar.sle...@digia.com

  The error message has been quite helpful with tracking down errors in
 the past, but I guess we can at least remove it from release builds and
 limit it a bit :) Added
 https://bugreports.qt-project.org/browse/QTBUG-34676 to track this.

  But why are you showing ShaderEffects which lack their image data? That
 is just wasting GPU resources

  ShaderEffect {
 property variant source;
 visible: typeof source != 'undefined'  source.status == Ready
 ...
 }

  Should keep it hidden and also remove the warning...

  cheers,
 Gunnar

  --
 *Fra:* 
 interest-bounces+gunnar.sletta=digia@qt-project.org[interest-bounces+gunnar.sletta=
 digia@qt-project.org] på vegne av Ola Røer Thorsen [o...@silentwings.no
 ]
 *Sendt:* 7. november 2013 16:43
 *To:* interest@qt-project.org
 *Emne:* [Interest] Quick2 ShaderEffect: source or provider missing when
 binding textures

   Hi all,

  if I use a ShaderEffect on an image that is loaded asynchronously, I get
 the error/debug message on the console:

  ShaderEffect: source or provider missing when binding textures

  for every frame rendered until the image is completely loaded and the
 texture is complete.

  This means our system logs on the target system (embedded linux device)
 gets flooded whenever we load new images (a photo viewer). Would it be
 possible to at least limit the number of times this is written (once
 instead of every frame)? Or could the message be removed completely? It's
 not useful at all when ShaderEffect is used this way.

  Best regards,
 Ola


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Quick2 ShaderEffect: source or provider missing when binding textures

2013-11-07 Thread Ola Røer Thorsen
Hi all,

if I use a ShaderEffect on an image that is loaded asynchronously, I get
the error/debug message on the console:

ShaderEffect: source or provider missing when binding textures

for every frame rendered until the image is completely loaded and the
texture is complete.

This means our system logs on the target system (embedded linux device)
gets flooded whenever we load new images (a photo viewer). Would it be
possible to at least limit the number of times this is written (once
instead of every frame)? Or could the message be removed completely? It's
not useful at all when ShaderEffect is used this way.

Best regards,
Ola
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Quick2 ShaderEffect: source or provider missing when binding textures

2013-11-07 Thread Sletta Gunnar
The error message has been quite helpful with tracking down errors in the past, 
but I guess we can at least remove it from release builds and limit it a bit :) 
Added https://bugreports.qt-project.org/browse/QTBUG-34676 to track this.

But why are you showing ShaderEffects which lack their image data? That is just 
wasting GPU resources

ShaderEffect {
property variant source;
visible: typeof source != 'undefined'  source.status == Ready
...
}

Should keep it hidden and also remove the warning...

cheers,
Gunnar


Fra: interest-bounces+gunnar.sletta=digia@qt-project.org 
[interest-bounces+gunnar.sletta=digia@qt-project.org] på vegne av Ola Røer 
Thorsen [o...@silentwings.no]
Sendt: 7. november 2013 16:43
To: interest@qt-project.org
Emne: [Interest] Quick2 ShaderEffect: source or provider missing when binding 
textures

Hi all,

if I use a ShaderEffect on an image that is loaded asynchronously, I get the 
error/debug message on the console:


ShaderEffect: source or provider missing when binding textures

for every frame rendered until the image is completely loaded and the texture 
is complete.

This means our system logs on the target system (embedded linux device) gets 
flooded whenever we load new images (a photo viewer). Would it be possible to 
at least limit the number of times this is written (once instead of every 
frame)? Or could the message be removed completely? It's not useful at all when 
ShaderEffect is used this way.

Best regards,
Ola

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest