- Setup EGL context for Wayland. Test window now opens as black rectangle.
This commit is contained in:
@@ -46,7 +46,7 @@ void platform::initialize() {
|
||||
}
|
||||
|
||||
void platform::shutdown() {
|
||||
|
||||
display.reset();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
|
||||
#include <fennec/platform/interface/window.h>
|
||||
#include <fennec/platform/interface/display_server.h>
|
||||
#include <fennec/renderers/interface/gfxsurface.h>
|
||||
|
||||
namespace fennec
|
||||
{
|
||||
@@ -38,4 +39,12 @@ window* window::get_parent() const {
|
||||
return server->get_window(cfg.parent);
|
||||
}
|
||||
|
||||
void window::begin_frame() {
|
||||
gfx_surface->make_current();
|
||||
}
|
||||
|
||||
void window::end_frame() {
|
||||
gfx_surface->swap();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user