To reproduce:
1. Create a new ShaderResourceView directly from a file:
var sr = ShaderResourceView.FromFile(device, "myfile.dds");
2. Try to get the resource view's Resource:
var res = sr.Resource;
3. You'll get a StackOverflowException.
I would expect ShaderResourceView.Resource to return null instead.
When the ShaderResourceView was created from the constructor, specifying the
Resource manually, then no StackOverflowException is thrown.
Original issue reported on code.google.com by pelsmae...@gmail.com on 2 Jul 2011 at 1:08
Original issue reported on code.google.com by
pelsmae...@gmail.com
on 2 Jul 2011 at 1:08