You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Fix OS.get_video_adapter_driver_info crash
This commit is contained in:
@@ -311,6 +311,10 @@ String OS_Windows::get_version() const {
|
||||
}
|
||||
|
||||
Vector<String> OS_Windows::get_video_adapter_driver_info() const {
|
||||
if (RenderingServer::get_singleton()->get_rendering_device() == nullptr) {
|
||||
return Vector<String>();
|
||||
}
|
||||
|
||||
REFCLSID clsid = CLSID_WbemLocator; // Unmarshaler CLSID
|
||||
REFIID uuid = IID_IWbemLocator; // Interface UUID
|
||||
IWbemLocator *wbemLocator = NULL; // to get the services
|
||||
|
||||
Reference in New Issue
Block a user