Commit 8c4ca0d5 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

direct3d11: code cleaning

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent f178aa56
...@@ -2459,7 +2459,7 @@ static bool UpdateQuadPosition( vout_display_t *vd, d3d_quad_t *quad, ...@@ -2459,7 +2459,7 @@ static bool UpdateQuadPosition( vout_display_t *vd, d3d_quad_t *quad,
D3D11_MAPPED_SUBRESOURCE mappedResource; D3D11_MAPPED_SUBRESOURCE mappedResource;
/* create the vertices */ /* create the vertices */
hr = ID3D11DeviceContext_Map(sys->d3d_dev.d3dcontext, (ID3D11Resource *)quad->pVertexBuffer, 0, D3D11_MAP_WRITE_DISCARD, 0, &mappedResource); hr = ID3D11DeviceContext_Map(sys->d3d_dev.d3dcontext, (ID3D11Resource *)quad->pVertexBuffer, 0, D3D11_MAP_WRITE_DISCARD, 0, &mappedResource);
if (FAILED(hr)) { if (FAILED(hr)) {
msg_Err(vd, "Failed to lock the vertex buffer (hr=0x%lX)", hr); msg_Err(vd, "Failed to lock the vertex buffer (hr=0x%lX)", hr);
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment