Skip to content

Commit

Permalink
fix: argumentException: RenderTextureDesc width must be greater than …
Browse files Browse the repository at this point in the history
…zero when setting the Down Sampling Rate to X8.

close #204
  • Loading branch information
mob-sakai committed Oct 31, 2024
1 parent 80413fc commit 3ffe109
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public static RenderTextureDescriptor GetDescriptor(Vector2Int size, bool useSte
{
Profiler.BeginSample("(COF)[RTRepository] GetDescriptor");
var rtd = new RenderTextureDescriptor(
size.x,
size.y,
Mathf.Max(8, size.x),
Mathf.Max(8, size.y),
s_GraphicsFormat,
useStencil ? 24 : 0)
{
Expand Down

0 comments on commit 3ffe109

Please sign in to comment.