mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Fixed up some code.
This commit is contained in:
@@ -361,6 +361,14 @@ bool Canvas::setWrap(const Texture::Wrap &w)
|
||||
wrap.s = wrap.t = WRAP_CLAMP;
|
||||
}
|
||||
|
||||
if (!gl.isClampZeroTextureWrapSupported())
|
||||
{
|
||||
if (wrap.s == WRAP_CLAMP_ZERO)
|
||||
wrap.s = WRAP_CLAMP;
|
||||
if (wrap.t == WRAP_CLAMP_ZERO)
|
||||
wrap.t = WRAP_CLAMP;
|
||||
}
|
||||
|
||||
gl.bindTexture(texture);
|
||||
gl.setTextureWrap(wrap);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user