- Implemented EGL Context
This commit is contained in:
@@ -23,21 +23,22 @@ namespace fennec
|
||||
{
|
||||
|
||||
template<typename CtorT>
|
||||
static constexpr void insert_driver(list<platform::driver<CtorT>>& list, CtorT ctor, int priority) {
|
||||
using list_t = fennec::list<platform::driver<CtorT>>;
|
||||
static constexpr void insert_driver(list<platform::driver<CtorT>>& drvrs, CtorT ctor, int priority) {
|
||||
using list_t = list<platform::driver<CtorT>>;
|
||||
using iter_t = typename list_t::iterator;
|
||||
|
||||
iter_t it = list.begin();
|
||||
while (it != list.end()) {
|
||||
iter_t it = drvrs.begin();
|
||||
while (it != drvrs.end()) {
|
||||
if (priority > it->priority) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
list.insert(it, { priority, ctor });
|
||||
drvrs.insert(it, { priority, ctor });
|
||||
}
|
||||
|
||||
void platform::initialize() {
|
||||
load_display();
|
||||
_display->select_context();
|
||||
}
|
||||
|
||||
void platform::shutdown() {
|
||||
|
||||
Reference in New Issue
Block a user