summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/formats.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/formats.c')
-rw-r--r--video/out/opengl/formats.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/opengl/formats.c b/video/out/opengl/formats.c
index 9bdc7828e5..1d1350ae1c 100644
--- a/video/out/opengl/formats.c
+++ b/video/out/opengl/formats.c
@@ -415,10 +415,11 @@ supported:
snprintf(out->swizzle, sizeof(out->swizzle), "%s", swizzle);
out->num_planes = desc.num_planes;
for (int n = 0; n < desc.num_planes; n++) {
+ if (!planes[n])
+ return false;
out->xs[n] = desc.xs[n];
out->ys[n] = desc.ys[n];
out->planes[n] = planes[n];
- assert(planes[n]);
}
return true;
}