We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2047 - Direct3D render driver leaks YUV pixel shader
Summary: Direct3D render driver leaks YUV pixel shader
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: 2.0.0
Hardware: x86_64 Windows 7
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-19 10:42 UTC by Peter Mackay
Modified: 2013-08-19 15:03 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Mackay 2013-08-19 10:42:38 UTC
As per summary, the data->ps_yuv shader is created but never released.

Inserting the following code in D3D_DestroyRenderer() before the release of the device should fix it:

	if (data->ps_yuv) {
		IDirect3DPixelShader9_Release(data->ps_yuv);
	}

This bug was found by using the debug Direct3D 9 runtime.
Comment 1 Ryan C. Gordon 2013-08-19 15:03:14 UTC
This is now http://hg.libsdl.org/SDL/rev/4033ba4fcc31, thanks!

--ryan.