Merged default into minor

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2014-07-08 14:01:55 -03:00
21 changed files with 177 additions and 48 deletions
+21
View File
@@ -1112,6 +1112,27 @@ double Graphics::getSystemLimit(SystemLimit limittype) const
return limit;
}
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.
return Canvas::isFormatSupported(Canvas::FORMAT_SRGB);
default:
return false;
}
}
void Graphics::push()
{
if (userMatrices == matrixLimit)