mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Replaced love.graphics.isSupported and love.graphics.getSystemLimit with love.graphics.getSupported and love.graphics.getSystemLimits, which return tables with graphics feature / system limit enum names as keys, and support status / limit numbers as values.
Removed the 'hdrcanvas', 'dxt', and 'bc5' graphics feature enums now that they're deprecated in 0.9.x in favour of getCanvasFormats and getCompressedImageFormats. --HG-- branch : minor
This commit is contained in:
@@ -1116,14 +1116,8 @@ bool Graphics::isSupported(Support feature) const
|
||||
{
|
||||
switch (feature)
|
||||
{
|
||||
case SUPPORT_HDR_CANVAS:
|
||||
return Canvas::isFormatSupported(Canvas::FORMAT_HDR);
|
||||
case SUPPORT_MULTI_CANVAS:
|
||||
return Canvas::isMultiCanvasSupported();
|
||||
case SUPPORT_DXT:
|
||||
return Image::hasCompressedTextureSupport(image::CompressedData::FORMAT_DXT5);
|
||||
case SUPPORT_BC5:
|
||||
return Image::hasCompressedTextureSupport(image::CompressedData::FORMAT_BC5);
|
||||
case SUPPORT_SRGB:
|
||||
// sRGB support for the screen is guaranteed if it's supported as a
|
||||
// Canvas format.
|
||||
|
||||
Reference in New Issue
Block a user