Skip to content

Commit 73c07af

Browse files
authored
Merge pull request #46 from MichealReed/emscripten_callback_fix
Fix emscripten deviceLostCallbackInfo
2 parents 14e7ed4 + bb217d4 commit 73c07af

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ examples/raymarch/build/*
66
docs/html
77
source
88
.DS_Store
9-
third_party/lib/libdawn.*
10-
third_party/lib/*.so
11-
third_party/lib/*.dylib
9+
third_party/lib/*
1210
third_party/local/*
1311

1412
# formatter files

gpu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ inline Context createContext(const WGPUInstanceDescriptor &desc = {},
755755
devData.device = device;
756756
devData.requestEnded = true;
757757
};
758-
#ifdef WEBGPU_BACKEND_DAWN
758+
#if defined(WEBGPU_BACKEND_DAWN) && !defined(__EMSCRIPTEN__)
759759
devDescriptor.deviceLostCallbackInfo = {
760760
.callback =
761761
[](WGPUDevice const *device, WGPUDeviceLostReason reason,

0 commit comments

Comments
 (0)