From 0f9b3a95a6cc087bc1e34d4becff04fa6160c582 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 18 Mar 2021 13:19:58 -0700 Subject: Remove `DescriptorSet` from D3D11 and GL devices. (#1761) --- tools/gfx/cpu/render-cpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/gfx/cpu/render-cpu.cpp') diff --git a/tools/gfx/cpu/render-cpu.cpp b/tools/gfx/cpu/render-cpu.cpp index 630ba2925..ab9224657 100644 --- a/tools/gfx/cpu/render-cpu.cpp +++ b/tools/gfx/cpu/render-cpu.cpp @@ -269,7 +269,7 @@ public: totalDataSize += levelDataSize; } - void* textureData = malloc(totalDataSize); + void* textureData = malloc((size_t)totalDataSize); m_data = textureData; if( initData ) -- cgit v1.2.3