openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.84k stars 2.56k forks source link

fix ofPixels <float> allocation issue #7936

Closed dimitre closed 1 month ago

dimitre commented 2 months ago

minimal changes to make it work so now the pixels buffer is allocated with the exact number of bytes used. it used to work ok with char because sizeof(char) is 1

related to some part of https://github.com/openframeworks/openFrameworks/issues/6226 addresses crash / artifacts

dimitre commented 2 months ago

copying @ofTheo @NickHardeman

dimitre commented 1 month ago

Merging this one, I consider a critical flaw