mirror of
https://github.com/mpv-player/mpv
synced 2025-03-22 11:18:32 +00:00
context_angle: replace hard-coded array size
This commit is contained in:
parent
98f5579c02
commit
08ec444ba5
@ -670,7 +670,7 @@ static void d3d11_swap_buffers(MPGLContext *ctx)
|
||||
// Restore the RTVs and release the objects
|
||||
ID3D11DeviceContext_OMSetRenderTargets(p->d3d11_context,
|
||||
MP_ARRAY_SIZE(rtvs), rtvs, dsv);
|
||||
for (int i = 0; i < 8; i++)
|
||||
for (int i = 0; i < MP_ARRAY_SIZE(rtvs); i++)
|
||||
SAFE_RELEASE(rtvs[i]);
|
||||
SAFE_RELEASE(dsv);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user