mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user