///////////////////////////////////////////////////////
| 670 | |
| 671 | //////////////////////////////////////////////////////////// |
| 672 | bool GlContext::isExtensionAvailable(std::string_view name) |
| 673 | { |
| 674 | // If this function is called before any context is available, |
| 675 | // the shared context will be created for the duration of this call |
| 676 | const auto sharedContext = SharedContext::get(); |
| 677 | |
| 678 | return std::find(sharedContext->extensions.begin(), sharedContext->extensions.end(), name) != |
| 679 | sharedContext->extensions.end(); |
| 680 | } |
| 681 | |
| 682 | |
| 683 | //////////////////////////////////////////////////////////// |