projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
035db6f
)
d3d12: Release sharing contract in flush_frontbuffer
author
Jesse Natalie
<jenatali@microsoft.com>
Mon, 29 Aug 2022 19:17:37 +0000
(12:17 -0700)
committer
Marge Bot
<emma+marge@anholt.net>
Thu, 20 Oct 2022 00:30:21 +0000
(
00:30
+0000)
Just a leak I happened to notice.
Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18305>
src/gallium/drivers/d3d12/d3d12_screen.cpp
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/d3d12/d3d12_screen.cpp
b/src/gallium/drivers/d3d12/d3d12_screen.cpp
index
68a03f7
..
1f85ea2
100644
(file)
--- a/
src/gallium/drivers/d3d12/d3d12_screen.cpp
+++ b/
src/gallium/drivers/d3d12/d3d12_screen.cpp
@@
-773,6
+773,7
@@
d3d12_flush_frontbuffer(struct pipe_screen * pscreen,
if (SUCCEEDED(screen->cmdqueue->QueryInterface(IID_PPV_ARGS(&sharing_contract)))) {
ID3D12Resource *d3d12_res = d3d12_resource_resource(res);
sharing_contract->Present(d3d12_res, 0, WindowFromDC((HDC)winsys_drawable_handle));
+ sharing_contract->Release();
}
#endif