| 510 | } |
| 511 | |
| 512 | void PlatformOpenGL::init() { |
| 513 | BOXEDWINE_CRITICAL_SECTION; |
| 514 | |
| 515 | formatsById.clear(); |
| 516 | formats.clear(); |
| 517 | hardwareListLoaded = false; |
| 518 | |
| 519 | |
| 520 | if (KSystem::videoOption != VIDEO_NO_WINDOW) { |
| 521 | hardwareListLoaded = queryOpenGL(formatsById, formats); |
| 522 | } |
| 523 | } |
| 524 | |
| 525 | void PlatformOpenGL::iterateFormats(std::function<void(const GLPixelFormatPtr& format)> callback) { |
| 526 | for (auto& format : formats) { |
nothing calls this directly
no test coverage detected