Skip to content

Commit

Permalink
Workaround for issue keijiro#200
Browse files Browse the repository at this point in the history
  • Loading branch information
keijiro authored and pfcDorn committed Jul 3, 2024
1 parent e27c7d6 commit 59d4eac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jp.keijiro.klak.ndi/Runtime/Internal/FormatConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ public RenderTexture Decode(int width, int height, bool enableAlpha, IntPtr data
if (_decoderOutput == null)
{
CheckDimensions(width, height);
#if KLAK_NDI_ISSUE200_WORKAROUND
_decoderOutput = new RenderTexture(width, height, 0, RenderTextureFormat.ARGBHalf);
#else
_decoderOutput = new RenderTexture(width, height, 0);
#endif
_decoderOutput.enableRandomWrite = true;
_decoderOutput.Create();
}
Expand Down

0 comments on commit 59d4eac

Please sign in to comment.