Skip to content

Commit

Permalink
Merge pull request #37 from mob-sakai/hotfix
Browse files Browse the repository at this point in the history
Release 1.5.1
  • Loading branch information
Takashi Sakai committed Jan 18, 2018
2 parents 2d46d47 + 7779af8 commit f27b3c0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Assets/UIEffect/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ Please enable `TexCoord1` to use UIEffect.

## Release Notes

### ver.1.5.1

* Fixed: An error occurs when no effect is specified for UICapturedImage. [#36](https://github.com/mob-sakai/UIEffect/issues/36)


### ver.1.5.0

* Feature: Add ToneMode `Hue Shift`.
Expand Down
6 changes: 4 additions & 2 deletions Assets/UIEffect/UIEffectCapturedImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ public void Capture()
Material mat = effectMaterial;

_buffer = new CommandBuffer();
_buffer.name = mat.name;
_rt.name = mat.name;
_buffer.name =
_rt.name =
mat ? mat.name : "noeffect";

// Copy to temporary RT.
_buffer.GetTemporaryRT(s_CopyId, -1, -1, 0, FilterMode.Bilinear);
Expand All @@ -194,6 +195,7 @@ public void Capture()
if (!mat)
{
_buffer.Blit(s_CopyId, rtId);
_buffer.ReleaseTemporaryRT(s_CopyId);
}
// Blit with reduction buffer.
else if (m_DesamplingRate < m_ReductionRate)
Expand Down
Binary file modified UIEffect.unitypackage
Binary file not shown.

0 comments on commit f27b3c0

Please sign in to comment.