diff options
author | James Ross-Gowan <rossy@jrg.systems> | 2017-08-19 22:00:58 +1000 |
---|---|---|
committer | James Ross-Gowan <rossy@jrg.systems> | 2017-08-19 22:05:29 +1000 |
commit | 08ec444ba5896e75a0071978da97ee0ec3f48918 (patch) | |
tree | 6db183a83f651b6d47eab4b9ac7ceb0ad48c045c /video | |
parent | 98f5579c02481267cd63f7e87d12f53a5b631618 (diff) | |
download | mpv-08ec444ba5896e75a0071978da97ee0ec3f48918.tar.bz2 mpv-08ec444ba5896e75a0071978da97ee0ec3f48918.tar.xz |
context_angle: replace hard-coded array size
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/context_angle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/context_angle.c b/video/out/opengl/context_angle.c index e09945ba2d..4edd69afc7 100644 --- a/video/out/opengl/context_angle.c +++ b/video/out/opengl/context_angle.c @@ -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); } |