mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +00:00
Remove unused TEXLOAD_NOMIPMAPS
and TEXLOAD_NO_COMPRESSION
The flag `TEXLOAD_NO_COMPRESSION` is entirely unused. The flag `TEXLOAD_NOMIPMAPS` is unused and only the respective `CCommandBuffer::TEXFLAG_NOMIPMAPS` is used internally, so the former flag does not need to be exposed to users of `IGraphics`.
This commit is contained in:
parent
273f3e5bfa
commit
924f8f582b
|
@ -414,8 +414,6 @@ static CCommandBuffer::SCommand_Texture_Create LoadTextureCreateCommand(int Text
|
|||
Cmd.m_Height = Height;
|
||||
|
||||
Cmd.m_Flags = 0;
|
||||
if(Flags & IGraphics::TEXLOAD_NOMIPMAPS)
|
||||
Cmd.m_Flags |= CCommandBuffer::TEXFLAG_NOMIPMAPS;
|
||||
if((Flags & IGraphics::TEXLOAD_TO_2D_ARRAY_TEXTURE) != 0)
|
||||
Cmd.m_Flags |= CCommandBuffer::TEXFLAG_TO_2D_ARRAY_TEXTURE;
|
||||
if((Flags & IGraphics::TEXLOAD_TO_3D_TEXTURE) != 0)
|
||||
|
|
|
@ -250,11 +250,9 @@ protected:
|
|||
public:
|
||||
enum
|
||||
{
|
||||
TEXLOAD_NOMIPMAPS = 1 << 1,
|
||||
TEXLOAD_NO_COMPRESSION = 1 << 2,
|
||||
TEXLOAD_TO_3D_TEXTURE = (1 << 3),
|
||||
TEXLOAD_TO_2D_ARRAY_TEXTURE = (1 << 4),
|
||||
TEXLOAD_NO_2D_TEXTURE = (1 << 5),
|
||||
TEXLOAD_TO_3D_TEXTURE = 1 << 0,
|
||||
TEXLOAD_TO_2D_ARRAY_TEXTURE = 1 << 1,
|
||||
TEXLOAD_NO_2D_TEXTURE = 1 << 2,
|
||||
};
|
||||
|
||||
class CTextureHandle
|
||||
|
|
Loading…
Reference in a new issue