Fix a number of resource leaks, both D3D11-only and general.

Additionally, fix D3D11 BlitFramebuffer
This commit is contained in:
Henrik Rydgard committed 2017-02-17 19:23:01 +01:00
1 parent 13a3d179d5
commit 2fabe3e1c5
10 files changed
+47 -39

No files matched your search

+2
View File
@@ -607,6 +607,8 @@ void NativeInitGraphics(GraphicsContext *graphicsContext) {
colorPipeline = g_draw->CreateGraphicsPipeline(colorDesc);
texColorPipeline = g_draw->CreateGraphicsPipeline(texColorDesc);
// Release these now, reference counting should ensure that they get completely released
// once we delete both pipelines.
inputLayout->Release();
rasterNoCull->Release();
blendNormal->Release();