MasDennis/Rajawali — pull request #96 by arjansomers (2012-06-29 10:44:14+00:00)
Title: Reduce warnings and a small fix

Loading materials gives warnings when handles cannot be created.

This happens when for example the ModelMatrix handle is not used in the shader, but AMaterial still tries to load it. This resulted in warnings (Also in examples).

But this is not a problem unless you try to use the handle. Therefore i moved the check to when they are actually being called.

Reason for fix: I don't like warnings, and in some issues people see warnings and think it might be related, while this not relevant to their problem. So they will look in the wrong direction.

Also incleaded,: Small recource leak fix because streams where not closed.