mirror of
https://github.com/love2d/love.git
synced 2026-08-17 02:58:31 +02:00
Rename internal uses of canvas to texture/render target
This commit is contained in:
@@ -161,11 +161,11 @@ void Event::exceptionIfInRenderPass(const char *name)
|
||||
{
|
||||
// Some core OS graphics functionality (e.g. swap buffers on some platforms)
|
||||
// happens inside SDL_PumpEvents - which is called by SDL_PollEvent and
|
||||
// friends. It's probably a bad idea to call those functions while a Canvas
|
||||
// friends. It's probably a bad idea to call those functions while a RT
|
||||
// is active.
|
||||
auto gfx = Module::getInstance<graphics::Graphics>(Module::M_GRAPHICS);
|
||||
if (gfx != nullptr && gfx->isCanvasActive())
|
||||
throw love::Exception("%s cannot be called while a Canvas is active in love.graphics.", name);
|
||||
if (gfx != nullptr && gfx->isRenderTargetActive())
|
||||
throw love::Exception("%s cannot be called while a render target is active in love.graphics.", name);
|
||||
}
|
||||
|
||||
Message *Event::convert(const SDL_Event &e)
|
||||
|
||||
Reference in New Issue
Block a user