mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-22 08:40:47 +00:00
addressing type conversion warning
This commit is contained in:
@@ -454,8 +454,8 @@ namespace tracy
|
||||
|
||||
void ApplyToDeviceDescriptor(WGPUDeviceDescriptor& deviceDescriptor)
|
||||
{
|
||||
uint32_t userCount = deviceDescriptor.requiredFeatureCount;
|
||||
uint32_t totalCount = userCount + NumFeatures;
|
||||
size_t userCount = deviceDescriptor.requiredFeatureCount;
|
||||
size_t totalCount = userCount + NumFeatures;
|
||||
// NOTE: this allocation will leak...
|
||||
auto* mergedFeatures = static_cast<WGPUFeatureName*>(tracy_malloc(totalCount * sizeof(WGPUFeatureName)));
|
||||
if (userCount > 0 && deviceDescriptor.requiredFeatures)
|
||||
|
||||
Reference in New Issue
Block a user