mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
fix memory corruption in d3d11_gfx_init. (#15139)
This commit is contained in:
parent
3a41738b61
commit
d3fad528ce
@ -954,6 +954,8 @@ static bool d3d11_init_swapchain(d3d11_video_t* d3d11,
|
|||||||
d3d11->device = *cached_device;
|
d3d11->device = *cached_device;
|
||||||
d3d11->context = *cached_context;
|
d3d11->context = *cached_context;
|
||||||
d3d11->supportedFeatureLevel = cached_supportedFeatureLevel;
|
d3d11->supportedFeatureLevel = cached_supportedFeatureLevel;
|
||||||
|
*cached_device = NULL;
|
||||||
|
*cached_context = NULL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user