0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

Merge pull request #1394 from SuslikV/patch-8

libobs-d3d11: Initialize variable to zero
This commit is contained in:
Jim 2018-07-31 04:44:55 -07:00 committed by GitHub
commit be2857f0bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1787,6 +1787,7 @@ bool gs_texture_map(gs_texture_t *tex, uint8_t **ptr, uint32_t *linesize)
gs_texture_2d *tex2d = static_cast<gs_texture_2d*>(tex);
D3D11_MAPPED_SUBRESOURCE map;
ZeroMemory(&map, sizeof(D3D11_MAPPED_SUBRESOURCE));
hr = tex2d->device->context->Map(tex2d->texture, 0,
D3D11_MAP_WRITE_DISCARD, 0, &map);
if (FAILED(hr))