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:
Robert Müller 2024-08-01 22:41:11 +02:00
parent 273f3e5bfa
commit 924f8f582b
2 changed files with 3 additions and 7 deletions

View file

@ -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)

View file

@ -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