summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/opengl/context_angle.c2
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);
}