mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Merge branch '12.0' into GraphicsBuffer
This commit is contained in:
@@ -173,7 +173,7 @@ void SpriteBatch::flush()
|
||||
void SpriteBatch::setTexture(Texture *newtexture)
|
||||
{
|
||||
if (texture->getTextureType() != newtexture->getTextureType())
|
||||
throw love::Exception("Texture must have the same texture type as the SpriteBatch's previous texture.");
|
||||
throw love::Exception("Texture must have the same type as the SpriteBatch's previous texture.");
|
||||
|
||||
texture.set(newtexture);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user