GL: Add fallback for when driver doesn't provide glDrawRangeElementsBaseVertex

This commit is contained in:
wheremyfoodat 2024-10-23 21:53:49 +03:00
parent 8c80099339
commit 7b1afc849e
3 changed files with 47 additions and 6 deletions

View file

@ -6,6 +6,8 @@ namespace OpenGL {
struct Driver {
bool supportsExtFbFetch = false;
bool supportsArmFbFetch = false;
// Does this driver support glDraw(Range)ElementsBaseVertex?
bool supportsDrawElementsBaseVertex = false;
bool supportFbFetch() const { return supportsExtFbFetch || supportsArmFbFetch; }
};