sdl/window: added assertion if render-to-texture is not supported
This commit is contained in:
parent
20af906b54
commit
e20bb4ba9e
1 changed files with 4 additions and 0 deletions
|
@ -59,6 +59,10 @@ window::window(const std::string& title,
|
|||
false);
|
||||
}
|
||||
|
||||
if((info.flags & SDL_RENDERER_TARGETTEXTURE) == 0) {
|
||||
throw exception("Render-to-texture not supported or enabled!", false);
|
||||
}
|
||||
|
||||
// Set default blend mode to blend.
|
||||
SDL_SetRenderDrawBlendMode(*this, SDL_BLENDMODE_BLEND);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue