Skip to content

Commit

Permalink
Avoid trying to use texture framebuffers on emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
Daft-Freak authored and slouken committed Mar 22, 2022
1 parent 2520322 commit 4b8d69a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/video/SDL_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4b8d69a

Please sign in to comment.