| 10 | using namespace gte; |
| 11 | |
| 12 | DX11GraphicsObject::~DX11GraphicsObject() |
| 13 | { |
| 14 | if (mGTObject && mGTObject->IsDrawingState()) |
| 15 | { |
| 16 | // Sampler, blend, depth-stencil, and rasterizer states have only a |
| 17 | // finite number of possibilities in DX11. If you create a state |
| 18 | // whose settings duplicate one already in existence, DX11 gives you |
| 19 | // a pointer to the existing one, incrementing the reference count |
| 20 | // internally. GTE does not track the duplicates, so we cannot |
| 21 | // assert that the reference count is zero. |
| 22 | DX11::SafeRelease(mDXObject); |
| 23 | } |
| 24 | else |
| 25 | { |
| 26 | DX11::FinalRelease(mDXObject); |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | DX11GraphicsObject::DX11GraphicsObject(GraphicsObject const* gtObject) |
| 31 | : |
nothing calls this directly
no test coverage detected