Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forgot to call Apply on the texture copy of the screenshot #13

Merged

Conversation

dena-hiroki-sakai
Copy link

@dena-hiroki-sakai dena-hiroki-sakai commented Apr 14, 2023

Changes

SlackReporter screenshot process now performs Apply after copying the texture content.

Reason

I am using SetPixels() to remove the alpha channel from a texture in a screenshot.
I have to execute Apply() after using this method, but I forgot to do it.
-> https://docs.unity3d.com/ja/2019.4/ScriptReference/Texture2D.Apply.html

However, it works fine even if Apply() is not executed, so this is an insurance measure as well.
This is in anticipation of problems that may occur in some environments.

Contribution License Agreement

@dena-hiroki-sakai dena-hiroki-sakai requested a review from a team as a code owner April 14, 2023 10:47
Copy link
Member

@Kuniwak Kuniwak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Kuniwak Kuniwak merged commit ec19986 into DeNA:master Apr 17, 2023
@dena-hiroki-sakai dena-hiroki-sakai deleted the feature/screenshot_setpixlels_apply branch April 21, 2023 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants