openframeworks/openFrameworks — pull request #1158 by prettyextreme (2012-04-10 14:16:48+00:00)
Title: ofImage Quick Bug Fix

A previous commit moved the setting of width/height/bpp/type into
allocate(). While these values should indeed be set during
allocation, possibly before an update(), they should also be set
in the case that some other program flow results in an update()
without an explicit call to allocate(), as occurs when calling
loadImage().

Tested on Windows against dirListExample and imageLoaderExample
and everything works again.

If anything, code added in this commit is resetting variables that, at
worst, have already been set, making it redundant.