diff --git a/src/sdl/window.cpp b/src/sdl/window.cpp index c9239a82dda0..6240829f4055 100644 --- a/src/sdl/window.cpp +++ b/src/sdl/window.cpp @@ -50,6 +50,10 @@ window::window(const std::string& title, false); } + if(!(info_.flags & SDL_RENDERER_TARGETTEXTURE)) { + throw exception("Render-to-texture not supported or enabled!", false); + } + // Set default blend mode to blend. SDL_SetRenderDrawBlendMode(*this, SDL_BLENDMODE_BLEND);