浏览代码

sokol_app.h: fix windows build

Andre Weissflog 3 年之前
父节点
当前提交
173da5b453
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sokol_app.h

+ 1 - 1
sokol_app.h

@@ -6578,7 +6578,7 @@ _SOKOL_PRIVATE void _sapp_win32_timing_measure(void) {
         // on D3D11, use the more precise DXGI timestamp
         if (_sapp.d3d11.use_dxgi_frame_stats) {
             DXGI_FRAME_STATISTICS dxgi_stats;
-            _sapp_clear(DXGI_FRAME_STATISTICS, dxgi_stats);
+            _sapp_clear(&dxgi_stats, sizeof(dxgi_stats));
             HRESULT hr = _sapp_dxgi_GetFrameStatistics(_sapp.d3d11.swap_chain, &dxgi_stats);
             if (SUCCEEDED(hr)) {
                 if (dxgi_stats.SyncRefreshCount != _sapp.d3d11.sync_refresh_count) {