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

TextureManager.Create1By1Tex() throws EndOfStreamException #6

Open
hozuki opened this issue Mar 31, 2016 · 0 comments
Open

TextureManager.Create1By1Tex() throws EndOfStreamException #6

hozuki opened this issue Mar 31, 2016 · 0 comments

Comments

@hozuki
Copy link

hozuki commented Mar 31, 2016

Well, good tutorials, and good repo, Mr. Richards, thanks.

I tried to run some examples and found EndOfStreamException is thrown in many of them. The debugger shows it is in the Core.Model.TextureManager.Create1By1Tex method, this line:

db.Data.Write(color);

I commented this line and the code works fine. Is setting the color of this pixel really necessary, or it is a defensive measure? I'm not sure why it throws an EndOfStreamException while "trying to read" (as the debugger prompts).

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

No branches or pull requests

1 participant