[egl] added fallback for platforms not supporting eglGetPlatformDisplay

This commit is contained in:
Geoffrey McRae
2020-01-17 11:50:00 +11:00
parent 406e22a681
commit 278d851c7c
3 changed files with 33 additions and 4 deletions

View File

@@ -34,6 +34,14 @@ FrameBuffer;
typedef bool (*FrameBufferReadFn)(void * opaque, const void * src, size_t size);
/**
* Wait for the framebuffer to fill to the specified size
*/
static inline void framebuffer_wait(const FrameBuffer * frame, size_t size)
{
while(frame->wp != size) {}
}
/**
* Read data from the KVMFRFrame into the dst buffer
*/