D3D11 device context clears and flushes the state to release internal references…

D3D11 device context clears and flushes the state to release internal references before destruction. TRAC #22231 Signed-off-by: Jamie Madill Signed-off-by: Daniel Koch Author: Geoff Lang git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1696 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent ad3d8270
...@@ -77,6 +77,8 @@ Renderer11::~Renderer11() ...@@ -77,6 +77,8 @@ Renderer11::~Renderer11()
if (mDeviceContext) if (mDeviceContext)
{ {
mDeviceContext->ClearState();
mDeviceContext->Flush();
mDeviceContext->Release(); mDeviceContext->Release();
mDeviceContext = NULL; mDeviceContext = NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment