mirror of https://github.com/encounter/SDL.git
Avoid trying to use texture framebuffers on emscripten
This commit is contained in:
parent
25203222f5
commit
4b8d69a416
|
@ -2507,6 +2507,11 @@ SDL_CreateWindowFramebuffer(SDL_Window * window)
|
||||||
attempt_texture_framebuffer = SDL_FALSE;
|
attempt_texture_framebuffer = SDL_FALSE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(__EMSCRIPTEN__)
|
||||||
|
else {
|
||||||
|
attempt_texture_framebuffer = SDL_FALSE;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (attempt_texture_framebuffer) {
|
if (attempt_texture_framebuffer) {
|
||||||
if (SDL_CreateWindowTexture(_this, window, &format, &pixels, &pitch) == -1) {
|
if (SDL_CreateWindowTexture(_this, window, &format, &pixels, &pitch) == -1) {
|
||||||
|
|
Loading…
Reference in New Issue