Avoid trying to use texture framebuffers on emscripten

main
Charlie Birks 2022-03-22 17:09:44 +00:00 committed by Sam Lantinga
parent 25203222f5
commit 4b8d69a416
1 changed files with 5 additions and 0 deletions

View File

@ -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) {