Add EGL replay implementation

This commit is contained in:
Peter Gal
2017-02-14 18:53:20 +01:00
committed by Baldur Karlsson
parent af6b4cf68c
commit a70bcb8ad3
5 changed files with 454 additions and 9 deletions
+21
View File
@@ -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.";