diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 8aa87014d..3be98806d 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) {