ChristianLa91 / slimdx

Automatically exported from code.google.com/p/slimdx
MIT License
0 stars 0 forks source link

ShaderResourceView.Resource in infinite loop for resource view not created from resource #810

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2110.

Original comment by Mike.Popoloski on 8 Jul 2011 at 5:08