Require stencil=true to be specified in setCanvas if stenciling is used while a Canvas is active and there is no custom stencil buffer.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-04-29 21:29:37 -03:00
parent 10d73ea1d7
commit 621fb24ba1
8 changed files with 42 additions and 10 deletions
+1 -1
View File
@@ -346,7 +346,7 @@ void Image::unloadVolatile()
void Image::replacePixels(love::image::ImageDataBase *d, int slice, int mipmap, bool reloadmipmaps)
{
// No effect if the texture hasn't been created yet.
if (texture == 0 || usingDefaultTexture)
if (getHandle() == 0 || usingDefaultTexture)
return;
if (d->getFormat() != getPixelFormat())