Trigger a Lua error if love.graphics.draw(canvas) is called while that canvas is the active one.

This only catches a subset of the possible accidental read-while-writing situations that can happen when using Canvases, unfortunately.
This commit is contained in:
Alex Szpakowski
2015-08-14 22:46:29 -03:00
parent 9be2581e6f
commit db91a73d57
2 changed files with 7 additions and 5 deletions
-3
View File
@@ -323,9 +323,6 @@ std::string getExecutablePath()
}
}
static dispatch_queue_t queue = nil;
static dispatch_source_t timer = nil;
void vibrate()
{
@autoreleasepool