mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Added a new texture wrap mode "clampzero", which outputs transparent black (or opaque black for textures without an alpha channel) rather than the texture's edge colors, when it's drawn or sampled from outside of its regular texture coordinate range.
This commit is contained in:
@@ -1491,6 +1491,8 @@ bool Graphics::isSupported(Support feature) const
|
||||
{
|
||||
case SUPPORT_MULTI_CANVAS_FORMATS:
|
||||
return Canvas::isMultiFormatMultiCanvasSupported();
|
||||
case SUPPORT_CLAMP_ZERO:
|
||||
return gl.isClampZeroTextureWrapSupported();
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user