Mark const method as such

This commit is contained in:
Dmitry Marakasov 2015-01-15 17:13:42 +03:00
parent be15f8c1d6
commit 90fef8ab49
2 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ void Renderer::SetViewport(const Optional<Rect>& rect) {
throw Exception("SDL_RenderSetViewport failed");
}
bool Renderer::TargetSupported() {
bool Renderer::TargetSupported() const {
return SDL_RenderTargetSupported(renderer_) == SDL_TRUE;
}

View File

@ -538,7 +538,7 @@ public:
/// \see http://wiki.libsdl.org/SDL_RenderTargetSupported
///
////////////////////////////////////////////////////////////
bool TargetSupported();
bool TargetSupported() const;
////////////////////////////////////////////////////////////
/// \brief Get the clip rectangle for the current target