Skip to content

Commit

Permalink
Use nullptr for another wgpuCreateInstance call
Browse files Browse the repository at this point in the history
  • Loading branch information
jrprice committed Feb 9, 2024
1 parent 7b43e78 commit de7d4ee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/common/gpu_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ inline bool create_webgpu_context(WGPUInstance *instance_out, WGPUAdapter *adapt
bool success = true;
} results;

WGPUInstanceDescriptor desc{};
desc.nextInChain = nullptr;
results.instance = wgpuCreateInstance(&desc);
results.instance = wgpuCreateInstance(nullptr);

auto request_adapter_callback = [](WGPURequestAdapterStatus status, WGPUAdapter adapter, char const *message, void *userdata) {
auto *results = (Results *)userdata;
Expand Down

0 comments on commit de7d4ee

Please sign in to comment.