Fix T58183: crash with CPU + GPU rendering after profiling changes.
Multi-device was not passing along profiler to the CPU.
This commit is contained in:
@@ -161,6 +161,7 @@ class RenderGraph : public testing::Test
|
||||
protected:
|
||||
ScopedMockLog log;
|
||||
Stats stats;
|
||||
Profiler profiler;
|
||||
DeviceInfo device_info;
|
||||
Device *device_cpu;
|
||||
SceneParams scene_params;
|
||||
@@ -179,7 +180,7 @@ protected:
|
||||
util_logging_start();
|
||||
util_logging_verbosity_set(1);
|
||||
|
||||
device_cpu = Device::create(device_info, stats, true);
|
||||
device_cpu = Device::create(device_info, stats, profiler, true);
|
||||
scene = new Scene(scene_params, device_cpu);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user