Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lhog committed Jan 2, 2025
1 parent 51a0205 commit 9186e8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions rts/Map/SMF/SMFGroundTextures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ void CSMFGroundTextures::LoadTiles(CSMFMapFile& file)
}


#if !defined(HEADLESS) && defined(GLAD_GL_ARB_ES3_compatibility)
#if !defined(HEADLESS) && defined(GL_ARB_ES3_compatibility)
if (RecompressTilesIfNeeded()) {
// Not all FOSS drivers support S3TC, use ETC1 for those if possible
// ETC2 is backward compatible with ETC1! GLEW doesn't have the ETC1 extension :<
Expand Down Expand Up @@ -285,12 +285,12 @@ void CSMFGroundTextures::ConvolveHeightMap(const int mapWidth, const int mipLeve
}
}

#if !defined(HEADLESS) && defined(GLAD_GL_ARB_ES3_compatibility)
#if !defined(HEADLESS) && defined(GL_ARB_ES3_compatibility)
// Not all FOSS drivers support S3TC, use ETC1 for those if possible
bool CSMFGroundTextures::RecompressTilesIfNeeded()
{
// if DXT1 is supported, we don't need to recompress
if (GLAD_GL_EXT_texture_compression_s3tc || GLAD_GL_EXT_texture_compression_dxt1)
if (GLAD_GL_EXT_texture_compression_s3tc)
return false;

// check if ETC1/2 is supported
Expand Down
4 changes: 2 additions & 2 deletions rts/Rendering/GL/myGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ bool CheckAvailableVideoModes()
static bool GetVideoMemInfoNV(GLint* memInfo)
{
RECOIL_DETAILED_TRACY_ZONE;
#if (defined(GLAD_GL_NVX_gpu_memory_info))
#if (defined(GL_NVX_gpu_memory_info))
if (!GLAD_GL_NVX_gpu_memory_info)
return false;

Expand All @@ -136,7 +136,7 @@ static bool GetVideoMemInfoNV(GLint* memInfo)
static bool GetVideoMemInfoATI(GLint* memInfo)
{
RECOIL_DETAILED_TRACY_ZONE;
#if (defined(GLAD_GL_ATI_meminfo))
#if (defined(GL_ATI_meminfo))
if (!GLAD_GL_ATI_meminfo)
return false;

Expand Down

0 comments on commit 9186e8a

Please sign in to comment.