Author :
Geoff Lang
Date :
2015-09-02 11:31:54
Hash :f826e1a3 Message :Avoid copy of PixelUnpackState in Texture::setImage.
The ternary operator determines that the common type is the value type, causing
a copy of PixelUnpackState. If PixelUnpackState::pixelBuffer is non-null then
there is an assertion failure in the destructor on any call to Texture::setImage.
See:http://stackoverflow.com/a/30088030
BUG=angleproject:1149
Change-Id: I9654e65956339d6b6966ad65a98cf37ad4e00452
Reviewed-on: https://chromium-review.googlesource.com/297084
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Tested-by: Geoff Lang <geofflang@chromium.org>