mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
(main) Remove null check from video_driver_set_cached_frame_ptr
The only call sites here use NULL as a parameter, and it makes sense to clear it, since the intent is to remove a potentially dangling pointer.
This commit is contained in:
parent
475213aa0a
commit
92e795aa28
@ -30810,8 +30810,7 @@ static void video_driver_lock_new(struct rarch_state *p_rarch)
|
||||
void video_driver_set_cached_frame_ptr(const void *data)
|
||||
{
|
||||
struct rarch_state *p_rarch = &rarch_st;
|
||||
if (data)
|
||||
p_rarch->frame_cache_data = data;
|
||||
p_rarch->frame_cache_data = data;
|
||||
}
|
||||
|
||||
void video_driver_set_stub_frame(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user