mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-06 21:37:47 +00:00
Fixed double-free in the OpenVR video backend
This commit is contained in:
@@ -222,8 +222,6 @@ static bool OPENVR_VideoInit(SDL_VideoDevice *_this)
|
||||
} else {
|
||||
display.desktop_mode.refresh_rate = data->oSystem->GetFloatTrackedDeviceProperty(k_unTrackedDeviceIndex_Hmd, ETrackedDeviceProperty_Prop_DisplayFrequency_Float, 0);
|
||||
}
|
||||
|
||||
display.internal = (SDL_DisplayData *)data;
|
||||
display.name = (char *)"OpenVRDisplay";
|
||||
SDL_AddVideoDisplay(&display, false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user