mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[host] fix compiler warnings
This commit is contained in:
parent
354bef94ee
commit
eba99f6968
@ -359,7 +359,7 @@ bool MFT::H264::GetFrame(void * buffer, const size_t bufferSize, unsigned int &
|
|||||||
outDataBuffer.pSample->ConvertToContiguousBuffer(&mb);
|
outDataBuffer.pSample->ConvertToContiguousBuffer(&mb);
|
||||||
|
|
||||||
BYTE *pixels;
|
BYTE *pixels;
|
||||||
DWORD maxLen, curLen;
|
DWORD curLen;
|
||||||
mb->Lock(&pixels, NULL, &curLen);
|
mb->Lock(&pixels, NULL, &curLen);
|
||||||
memcpy(buffer, pixels, curLen);
|
memcpy(buffer, pixels, curLen);
|
||||||
mb->Unlock();
|
mb->Unlock();
|
||||||
|
@ -370,10 +370,10 @@ bool TextureConverter::Convert(ID3D11Texture2DPtr texture, TextureList & output)
|
|||||||
D3D11_TEXTURE2D_DESC srcDesc;
|
D3D11_TEXTURE2D_DESC srcDesc;
|
||||||
|
|
||||||
src->GetDesc(&srcDesc);
|
src->GetDesc(&srcDesc);
|
||||||
srcDesc.Width *= m_scaleFormats[i];
|
viewPorts[0].Width = srcDesc.Width * m_scaleFormats[i];
|
||||||
srcDesc.Height *= m_scaleFormats[i];
|
viewPorts[0].Height = srcDesc.Height * m_scaleFormats[i];
|
||||||
viewPorts[0].Width = srcDesc.Width;
|
srcDesc.Width = (UINT)viewPorts[0].Width;
|
||||||
viewPorts[0].Height = srcDesc.Height;
|
srcDesc.Height = (UINT)viewPorts[0].Height;
|
||||||
|
|
||||||
result = m_device->CreateTexture2D(&srcDesc, NULL, &dest);
|
result = m_device->CreateTexture2D(&srcDesc, NULL, &dest);
|
||||||
if (FAILED(result))
|
if (FAILED(result))
|
||||||
|
Loading…
Reference in New Issue
Block a user