mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Use int instead of PixelFormatUsageFlags for isPixelFormatSupported.
This commit is contained in:
@@ -1778,7 +1778,7 @@ PixelFormat Graphics::getSizedFormat(PixelFormat format, bool /*rendertarget*/,
|
||||
}
|
||||
}
|
||||
|
||||
bool Graphics::isPixelFormatSupported(PixelFormat format, PixelFormatUsageFlags usage, bool sRGB)
|
||||
bool Graphics::isPixelFormatSupported(PixelFormat format, int usage, bool sRGB)
|
||||
{
|
||||
bool rendertarget = (usage & PIXELFORMATUSAGEFLAGS_RENDERTARGET) != 0;
|
||||
bool readable = (usage & PIXELFORMATUSAGEFLAGS_SAMPLE) != 0;
|
||||
|
||||
Reference in New Issue
Block a user