Cleaning for opengl rendering prep.

This commit is contained in:
James Grogan 2022-11-14 11:19:51 +00:00
parent 402f381d10
commit 7c6a92f4ec
58 changed files with 570 additions and 533 deletions

View file

@ -1,7 +1,6 @@
#include "WaylandEglWindowInterface.h"
#include "FileLogger.h"
#include "OpenGlInterface.h"
#include <wayland-egl.h>
@ -59,7 +58,7 @@ void WaylandEglWindowInterface::initialize(wl_surface* surface, int width, int h
}
}
void WaylandEglWindowInterface::draw()
void WaylandEglWindowInterface::beforePaint()
{
if (!mEglSurface)
{
@ -70,8 +69,14 @@ void WaylandEglWindowInterface::draw()
{
MLOG_ERROR("Made current failed");
}
}
OpenGlInterface::draw(nullptr);
void WaylandEglWindowInterface::afterPaint()
{
if (!mEglSurface)
{
return;
}
if (!eglSwapBuffers(mEglInterface->getDisplay(), mEglSurface))
{