bakjos / WebCameraFeed

Web Camera plugin for Unreal Engine
63 stars 29 forks source link

[ptn] fixed wrong pixel format on texture re-creation #11

Closed peetonn closed 3 years ago

peetonn commented 3 years ago

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.