mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Fixed resource leak with D3D11 NV12 textures
This commit is contained in:
parent
21003b7db2
commit
5f0b2a7f54
0
Xcode/SDL/SDL.xcodeproj/project.pbxproj
Normal file → Executable file
0
Xcode/SDL/SDL.xcodeproj/project.pbxproj
Normal file → Executable file
0
build-scripts/config.guess
vendored
Executable file → Normal file
0
build-scripts/config.guess
vendored
Executable file → Normal file
0
build-scripts/config.sub
vendored
Executable file → Normal file
0
build-scripts/config.sub
vendored
Executable file → Normal file
@ -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
Block a user