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

Summary: Direct3D render driver leaks YUV pixel shader
Product: SDL Reporter: Peter Mackay <mackay.pete+sdlbugzilla>
Component: renderAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus, mackay.pete+sdlbugzilla
Version: 2.0.0   
Hardware: x86_64   
OS: Windows 7   

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.