The texture is originally created with pixel format PF_R8G8B8A8, however, inside update() routine if texture is invalid, it is being re-allocated again but with pixel format PF_B8G8R8A8 which results in camera image texture having R and B channels swapped.
This commit fixes this issue by removing pixel format argument passed to resizeData() thus falling back to the default value of PF_R8G8B8A8.
The texture is originally created with pixel format
PF_R8G8B8A8
, however, insideupdate()
routine if texture is invalid, it is being re-allocated again but with pixel formatPF_B8G8R8A8
which results in camera image texture having R and B channels swapped. This commit fixes this issue by removing pixel format argument passed toresizeData()
thus falling back to the default value ofPF_R8G8B8A8
.