Villacaleb / slimdx

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

Factory1 does not have a FromPointerReflectionThunk() method, hence GetParent<>() from an Adaptor1 fails. #800

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Not sure why this is, but it appears to be due to the use of the 
COMOBJECT_CUSTOM macro instead of the COMOBJECT macro to define the standard 
com object methods.

This problem was encountered when trying to retrieve the factory for an already 
created device. eg

            DXGIDevice = new SlimDX.DXGI.Device1(Device);
            DXGIAdapator = DXGIDevice.GetParent<Adapter1>();

            Factory = DXGIAdapator.GetParent<Factory1>();

The easy workaround is to just query for Factory instead...

Original issue reported on code.google.com by dbl...@fastmail.fm on 27 May 2011 at 4:18

GoogleCodeExporter commented 9 years ago
Will fix.

Original comment by Mike.Popoloski on 27 May 2011 at 11:52

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

Original comment by Mike.Popoloski on 13 Jun 2011 at 4:26