[egl] added fallback for platforms not supporting eglGetPlatformDisplay

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

No files matched your search

+8
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
*/