mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Update the internal naming convention for pixel formats.
--HG-- branch : minor
This commit is contained in:
@@ -41,7 +41,7 @@ GlyphData::GlyphData(uint32 glyph, GlyphMetrics glyphMetrics, PixelFormat f)
|
||||
, data(nullptr)
|
||||
, format(f)
|
||||
{
|
||||
if (f != PIXELFORMAT_LA8 && f != PIXELFORMAT_RGBA8)
|
||||
if (f != PIXELFORMAT_LA8_UNORM && f != PIXELFORMAT_RGBA8_UNORM)
|
||||
throw love::Exception("Invalid GlyphData pixel format.");
|
||||
|
||||
if (metrics.width > 0 && metrics.height > 0)
|
||||
|
||||
Reference in New Issue
Block a user