17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-29 20:57:32 +01:00

Fix the build after merging master: drop the GLES check from bptc_supported()

This commit is contained in:
2026-10-29 20:46:11 +01:00
parent 55372571b3
commit a99882278a

View File

@@ -300,11 +300,10 @@ GLint bc7_components( std::istream &File, std::streamoff const Start, std::size_
}
return GL_RGB; }
// BC7 is core since GL 4.2, older contexts and GLES need the extension. requires current gl context
// BC7 is core since GL 4.2, older contexts need the extension. requires current gl context
bool bptc_supported() {
static bool const supported = []() {
if( ( false == Global.gfx_usegles )
&& ( ( GLVersion.major > 4 ) || ( ( GLVersion.major == 4 ) && ( GLVersion.minor >= 2 ) ) ) ) {
if( ( GLVersion.major > 4 ) || ( ( GLVersion.major == 4 ) && ( GLVersion.minor >= 2 ) ) ) {
return true;
}
GLint count { 0 };