mirror of https://github.com/encounter/SDL.git
Fixed resource leak with D3D11 NV12 textures
This commit is contained in:
parent
21003b7db2
commit
5f0b2a7f54
|
@ -1240,6 +1240,8 @@ D3D11_DestroyTexture(SDL_Renderer * renderer,
|
||||||
SAFE_RELEASE(data->mainTextureResourceViewU);
|
SAFE_RELEASE(data->mainTextureResourceViewU);
|
||||||
SAFE_RELEASE(data->mainTextureV);
|
SAFE_RELEASE(data->mainTextureV);
|
||||||
SAFE_RELEASE(data->mainTextureResourceViewV);
|
SAFE_RELEASE(data->mainTextureResourceViewV);
|
||||||
|
SAFE_RELEASE(data->mainTextureNV);
|
||||||
|
SAFE_RELEASE(data->mainTextureResourceViewNV);
|
||||||
SDL_free(data->pixels);
|
SDL_free(data->pixels);
|
||||||
SDL_free(data);
|
SDL_free(data);
|
||||||
texture->driverdata = NULL;
|
texture->driverdata = NULL;
|
||||||
|
|
Loading…
Reference in New Issue