mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-17 09:46:03 -04:00
Don't use deprecated method
This commit is contained in:
parent
0f1dd26ebd
commit
6e6f8d1a6f
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
libSDL2pp - C++11 bindings/wrapper for SDL2
|
libSDL2pp - C++11 bindings/wrapper for SDL2
|
||||||
Copyright (C) 2013-2014 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
Copyright (C) 2013-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
This software is provided 'as-is', without any express or implied
|
||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
@ -54,7 +54,7 @@ int Run() {
|
|||||||
|
|
||||||
// Necessary checks according to SDL docs
|
// Necessary checks according to SDL docs
|
||||||
SDL_RendererInfo ri;
|
SDL_RendererInfo ri;
|
||||||
render.GetInfo(&ri);
|
render.GetInfo(ri);
|
||||||
|
|
||||||
if (!(ri.flags & SDL_RENDERER_TARGETTEXTURE)) {
|
if (!(ri.flags & SDL_RENDERER_TARGETTEXTURE)) {
|
||||||
std::cerr << "Sorry, your renderer doesn't support texture targets" << std::endl;
|
std::cerr << "Sorry, your renderer doesn't support texture targets" << std::endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user