SDL: Properly shortcut only when AVX2 or SSE4.1 available

From f68a7edcf8187ba326232a4d4377de66e68a6638 Mon Sep 17 00:00:00 2001
From: Isaac Aronson <[EMAIL REDACTED]>
Date: Tue, 5 Sep 2023 23:03:00 -0500
Subject: [PATCH] Properly shortcut only when AVX2 or SSE4.1 available

---
 src/video/SDL_blit_A.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video/SDL_blit_A.c b/src/video/SDL_blit_A.c
index 5e35c9c7bbb62..7a5757100e399 100644
--- a/src/video/SDL_blit_A.c
+++ b/src/video/SDL_blit_A.c
@@ -1383,7 +1383,7 @@ SDL_BlitFunc SDL_CalculateBlitA(SDL_Surface *surface)
 
         case 4:
 #if defined(SDL_SSE4_1_INTRINSICS) || defined(SDL_AVX2_INTRINSICS)
-            if (sf->BytesPerPixel == 4 && df->BytesPerPixel == 4) {
+            if (sf->BytesPerPixel == 4 && df->BytesPerPixel == 4 && (SDL_HasAVX2() || SDL_HasSSE41())) {
                 return BlitNtoNPixelAlpha;
             }
 #endif