SDL: Avoid trying to use texture framebuffers on emscripten

From 4b8d69a41687e5f6f4b05f7fd9804dd9fcac0347 Mon Sep 17 00:00:00 2001
From: Charlie Birks <[EMAIL REDACTED]>
Date: Tue, 22 Mar 2022 17:09:44 +0000
Subject: [PATCH] Avoid trying to use texture framebuffers on emscripten

---
 src/video/SDL_video.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index 8aa87014d1b..3be98806dd3 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -2507,6 +2507,11 @@ SDL_CreateWindowFramebuffer(SDL_Window * window)
             attempt_texture_framebuffer = SDL_FALSE;
         }
         #endif
+        #if defined(__EMSCRIPTEN__)
+        else {
+            attempt_texture_framebuffer = SDL_FALSE;
+        }
+        #endif
 
         if (attempt_texture_framebuffer) {
             if (SDL_CreateWindowTexture(_this, window, &format, &pixels, &pitch) == -1) {