mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Fix missing depth formats in love.graphics.getTextureFormats.
This commit is contained in:
@@ -2937,9 +2937,6 @@ int w_getTextureFormats(lua_State *L)
|
||||
if (format == PIXELFORMAT_UNKNOWN || !love::getConstant(format, name))
|
||||
continue;
|
||||
|
||||
if (rt && isPixelFormatDepth(format))
|
||||
continue;
|
||||
|
||||
uint32 usage = PIXELFORMATUSAGEFLAGS_NONE;
|
||||
if (rt)
|
||||
usage |= PIXELFORMATUSAGEFLAGS_RENDERTARGET;
|
||||
|
||||
Reference in New Issue
Block a user