dx11 icon indicating copy to clipboard operation
dx11 copied to clipboard

TextureManager.Create1By1Tex() throws EndOfStreamException

Open hozuki opened this issue 9 years ago • 0 comments

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).

hozuki avatar Mar 31 '16 04:03 hozuki