diff options
-rw-r--r-- | video/out/opengl/ra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/ra.c b/video/out/opengl/ra.c index 939901a0fd..7f0053955b 100644 --- a/video/out/opengl/ra.c +++ b/video/out/opengl/ra.c @@ -230,7 +230,7 @@ bool ra_get_imgfmt_desc(struct ra *ra, int imgfmt, struct ra_imgfmt_desc *out) } for (int n = 0; n < ra->num_formats; n++) { - if (ra->formats[n]->special_imgfmt == imgfmt) { + if (imgfmt && ra->formats[n]->special_imgfmt == imgfmt) { res = *ra->formats[n]->special_imgfmt_desc; goto supported; } |