- switched from GLEW to GLAD and now dynamically links EGL & OpenGL

This commit is contained in:
2025-12-28 02:14:45 -05:00
parent ecf1cfc29c
commit c1be5385d3
24 changed files with 32002 additions and 35 deletions

View File

@@ -24,13 +24,15 @@ namespace fennec
{
window::window(display_server* server, const config& conf, window* parent)
: server(server), parent(parent), root(parent ? parent : this)
: server(server), parent(parent)
, root(parent ? parent : this)
, cfg(conf), state() {
state.mode = conf.mode;
while (root != nullptr and root->is_popup()) {
while (root->get_parent() != nullptr and root->is_popup()) {
root = root->get_parent();
}
// if parent is null, root will point to this
assertf(root != nullptr, "Failed to find appropriate top-level window.");
}