Skip to content

Commit

Permalink
Remove unused TEXLOAD_NOMIPMAPS and TEXLOAD_NO_COMPRESSION
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
Robyt3 committed Aug 2, 2024
1 parent 273f3e5 commit 924f8f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/engine/client/graphics_threaded.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 3 additions & 5 deletions src/engine/graphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,9 @@ class IGraphics : public IInterface
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
Expand Down

0 comments on commit 924f8f5

Please sign in to comment.