Fix ubsan reported errors in rendering
This allows the TPS demo to run without an ubsan reports from any of the rendering code.
This commit is contained in:
@ -184,7 +184,7 @@ Error RenderingContextDriverD3D12::_initialize_devices() {
|
||||
|
||||
Device &device = driver_devices[i];
|
||||
device.name = desc.Description;
|
||||
device.vendor = Vendor(desc.VendorId);
|
||||
device.vendor = desc.VendorId;
|
||||
device.workarounds = Workarounds();
|
||||
|
||||
if (desc.Flags & DXGI_ADAPTER_FLAG_SOFTWARE) {
|
||||
|
||||
Reference in New Issue
Block a user