mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-03 21:12:07 +01:00
Fix the build after merging master: drop the GLES check from bptc_supported()
This commit is contained in:
@@ -300,11 +300,10 @@ GLint bc7_components( std::istream &File, std::streamoff const Start, std::size_
|
|||||||
}
|
}
|
||||||
return GL_RGB; }
|
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() {
|
bool bptc_supported() {
|
||||||
static bool const supported = []() {
|
static bool const supported = []() {
|
||||||
if( ( false == Global.gfx_usegles )
|
if( ( GLVersion.major > 4 ) || ( ( GLVersion.major == 4 ) && ( GLVersion.minor >= 2 ) ) ) {
|
||||||
&& ( ( GLVersion.major > 4 ) || ( ( GLVersion.major == 4 ) && ( GLVersion.minor >= 2 ) ) ) ) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
GLint count { 0 };
|
GLint count { 0 };
|
||||||
|
|||||||
Reference in New Issue
Block a user