SDL_image: test: Fix conversion to RGBA32

From c12f49a58988fb4e5707b67a5e28eb1a623b7750 Mon Sep 17 00:00:00 2001
From: Simon McVittie <[EMAIL REDACTED]>
Date: Mon, 23 May 2022 19:21:10 +0100
Subject: [PATCH] test: Fix conversion to RGBA32

We were early-returning due to a faulty check.

Fixes: 59dff46 "Add a simple automated test"
Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 test/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/main.c b/test/main.c
index 508aa87c..d0aa74fb 100644
--- a/test/main.c
+++ b/test/main.c
@@ -513,7 +513,7 @@ ConvertToRgba32(SDL_Surface **surface_p)
         SDLTest_AssertCheck(temp != NULL,
                             "Converting to RGBA should succeed (%s)",
                             SDL_GetError());
-        if (temp != NULL) {
+        if (temp == NULL) {
             return SDL_FALSE;
         }
         SDL_FreeSurface(*surface_p);