| 515 | } |
| 516 | |
| 517 | static std::tuple<uint8_t, uint8_t> DecodeVersion(std::string_view ver) |
| 518 | { |
| 519 | StringConsumer consumer{ver}; |
| 520 | int major = consumer.ReadIntegerBase<uint8_t>(10); |
| 521 | if (consumer.ReadIf(".")) return {major, consumer.ReadIntegerBase<uint8_t>(10)}; |
| 522 | return {major, 0}; |
| 523 | } |
| 524 | |
| 525 | /** |
| 526 | * Check for the needed OpenGL functionality and allocate all resources. |
no test coverage detected