mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[host] dxgi: fix d3d11 invalid memory allocation for backend struct
This commit is contained in:
parent
fd79bb1333
commit
772e0e3b4a
@ -50,7 +50,7 @@ static bool d3d11_create(unsigned textures)
|
||||
DEBUG_ASSERT(!this);
|
||||
this = calloc(1,
|
||||
sizeof(struct D3D11Backend) +
|
||||
sizeof(*this->texture) + textures);
|
||||
sizeof(*this->texture) * textures);
|
||||
|
||||
if (!this)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user