Native Plugin Texture2d rendering fails in build

Hey peeps, I am playing with native plugin texture2d manipulation where I attach a texture2d to a quad’s material and then pass the texture2d’s ptr to a DLL. Similar to this doc Unity - Manual: Low-level native plug-in interface. Then I pass the image from my webcam to my DLL as well and update the texture2d with my GPU. This works in the editor but I have no idea why the image data seems to break in the build.

Working in editor:
alt text
Failing in build:
alt text

Problem solved… I don’t know why but Unity or Windows caches DLL… and didn’t use the latest DLL for some reason. So my picture was lacking a channel. Delete build and dll in your folder then rebuild to fix the problem.