Cleaning for opengl rendering prep.
This commit is contained in:
parent
402f381d10
commit
7c6a92f4ec
58 changed files with 570 additions and 533 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue