mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 04:57:54 +00:00
[host] dxgi: fix d3d11 invalid memory allocation for backend struct
This commit is contained in:
parent
fd79bb1333
commit
772e0e3b4a
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ static bool d3d11_create(unsigned textures)
|
||||||
DEBUG_ASSERT(!this);
|
DEBUG_ASSERT(!this);
|
||||||
this = calloc(1,
|
this = calloc(1,
|
||||||
sizeof(struct D3D11Backend) +
|
sizeof(struct D3D11Backend) +
|
||||||
sizeof(*this->texture) + textures);
|
sizeof(*this->texture) * textures);
|
||||||
|
|
||||||
if (!this)
|
if (!this)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue