dx11
                                
                                
                                
                                    dx11 copied to clipboard
                            
                            
                            
                        TextureManager.Create1By1Tex() throws EndOfStreamException
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).