Commit ebb191f34d31d3a61aa56e45e00fe6c8196b17bf

Sam Lantinga 2022-06-29T17:25:12

Merge commit 'ebe4f47f2b2e97deed78faa6c3e90ff51cd499a4' into main

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/render/direct3d12/SDL_render_d3d12.c b/src/render/direct3d12/SDL_render_d3d12.c
index 47870e6..5fbe42b 100644
--- a/src/render/direct3d12/SDL_render_d3d12.c
+++ b/src/render/direct3d12/SDL_render_d3d12.c
@@ -59,8 +59,8 @@
 #define D3D_GUID(X) (X)
 #else
 #define SAFE_RELEASE(X) if (X) { (X)->lpVtbl->Release(X); X = NULL; }
-#define D3D_CALL(THIS, FUNC, ...) (THIS)->lpVtbl->FUNC((THIS), __VA_ARGS__)
-#define D3D_CALL_RET(THIS, FUNC, ...) (THIS)->lpVtbl->FUNC((THIS), __VA_ARGS__)
+#define D3D_CALL(THIS, FUNC, ...) (THIS)->lpVtbl->FUNC((THIS), ##__VA_ARGS__)
+#define D3D_CALL_RET(THIS, FUNC, ...) (THIS)->lpVtbl->FUNC((THIS), ##__VA_ARGS__)
 #define D3D_GUID(X) &(X)
 #endif