- switched from GLEW to GLAD and now dynamically links EGL & OpenGL
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user