Cycles: Report error via the new engine API

This way CUDA errors are visible in the image info line,
which makes things to behave the same across viewport and
final rendering.

That's right, we've got error reported via reports and info
line now. This is based on the feedback from our gooseberry
team.
This commit is contained in:
Sergey Sharybin 2014-12-05 22:00:39 +05:00
parent ecc03c8ed0
commit 0493879401

@ -875,6 +875,7 @@ void BlenderSession::update_status_progress()
* For until then, 1 << 5 means RPT_ERROR.
*/
b_engine.report(1 << 5, error.c_str());
b_engine.error_set(error.c_str());
last_error = error;
}
}