Fixed shader compilation error handling 34/32534/3
authorDavid Steele <david.steele@partner.samsung.com>
Thu, 18 Dec 2014 19:10:54 +0000 (19:10 +0000)
committerDavid Steele <david.steele@partner.samsung.com>
Mon, 5 Jan 2015 16:00:18 +0000 (16:00 +0000)
commitf0b6d57482f3b069a592737ab55867f86e090ce2
tree3780b8bd0636439439eabb606c3530d90320cd6b
parent58d8bbd7fc6e42ee919fd98c8eb1c58bc683ef1d
Fixed shader compilation error handling

Dali::Vector cannot use operator[0] after a Reserve (it asserts),
unlike std::vector.

Changed error handling to use Begin() instead, which returns a pointer
to the reserved memory without asserting.

Fixed exception handling, which uses the same string without the length
check.

Change-Id: I2e0131aec6cec209f27ef0ea7f903c718cbc4193
Signed-off-by: David Steele <david.steele@partner.samsung.com>
dali/internal/render/shaders/program.cpp