mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Add EGL replay implementation
This commit is contained in:
committed by
Baldur Karlsson
parent
af6b4cf68c
commit
a70bcb8ad3
@@ -708,6 +708,14 @@ extern "C" void glXWaitX();
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(RENDERDOC_SUPPORT_GLES)
|
||||
|
||||
// symbol defined in libEGL but not in librenderdoc.
|
||||
// Forces link of libEGL.
|
||||
extern "C" int eglWaitGL(void);
|
||||
|
||||
#endif
|
||||
|
||||
void sig_handler(int signo)
|
||||
{
|
||||
if(usingKillSignal)
|
||||
@@ -726,6 +734,14 @@ int main(int argc, char *argv[])
|
||||
if(never_run)
|
||||
glXWaitX();
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(RENDERDOC_SUPPORT_GLES)
|
||||
|
||||
volatile bool never_run = false;
|
||||
if(never_run)
|
||||
eglWaitGL();
|
||||
|
||||
#endif
|
||||
|
||||
signal(SIGINT, sig_handler);
|
||||
@@ -750,6 +766,11 @@ int main(int argc, char *argv[])
|
||||
count++;
|
||||
#endif
|
||||
|
||||
#if defined(RENDERDOC_SUPPORT_GLES)
|
||||
support += "GLES, ";
|
||||
count++;
|
||||
#endif
|
||||
|
||||
if(count == 0)
|
||||
{
|
||||
support += "None.";
|
||||
|
||||
Reference in New Issue
Block a user