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

Fix for Texture2D.FromStream when MemoryStream is passed to it. #6518

Closed
wants to merge 1 commit into from
Closed

Fix for Texture2D.FromStream when MemoryStream is passed to it. #6518

wants to merge 1 commit into from

Conversation

rds1983
Copy link
Contributor

@rds1983 rds1983 commented Nov 1, 2018

A problem had been reported:
http://community.monogame.net/t/texture2d-fromstream-no-longer-works/11067

I was able to reproduce it. It seems there is a problem when MemoryStream is passed to Texture2D.FromStream.
This PR fixes it.

@rds1983
Copy link
Contributor Author

rds1983 commented Nov 1, 2018

Nevermind, I was passing MemoryStream with position set to its end. Ignore this PR.

@rds1983 rds1983 closed this Nov 1, 2018
@rds1983 rds1983 deleted the stbsharp_fix2 branch November 1, 2018 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant