Skip to content

Commit

Permalink
Delete unused members of glconfig_t
Browse files Browse the repository at this point in the history
  • Loading branch information
slipher committed Sep 24, 2024
1 parent c6cfb95 commit 3616cbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
22 changes: 4 additions & 18 deletions src/engine/renderer/tr_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -922,24 +922,10 @@ ScreenshotCmd screenshotPNGRegistration("screenshotPNG", ssFormat_t::SSF_PNG, "p

Log::Notice("PIXELFORMAT: color(%d-bits)", glConfig.colorBits );

{
std::string out;
if ( glConfig.displayFrequency )
{
out = Str::Format("%d", glConfig.displayFrequency );
}
else
{
out = "N/A";
}

Log::Notice("MODE: %d, %d x %d %s hz: %s",
r_mode->integer,
glConfig.vidWidth, glConfig.vidHeight,
fsstrings[ +r_fullscreen.Get() ],
out
);
}
Log::Notice("MODE: %d, %d x %d %s",
r_mode->integer,
glConfig.vidWidth, glConfig.vidHeight,
fsstrings[ +r_fullscreen.Get() ] );

if ( !!r_glExtendedValidation->integer )
{
Expand Down
5 changes: 0 additions & 5 deletions src/engine/renderer/tr_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,14 +351,9 @@ struct glconfig_t
glHardwareType_t hardwareType;

textureCompression_t textureCompression;
bool8_t textureEnvAddAvailable;
bool8_t anisotropicAvailable; //----(SA) added
float maxAnisotropy; //----(SA) added

int vidWidth, vidHeight;

int displayFrequency;

bool8_t smpActive; // dual processor
};

Expand Down

0 comments on commit 3616cbd

Please sign in to comment.