mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 06:08:30 +09:00
[Test] (tools/trace_replay): dump every live framebuffer attachment at a call boundary
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#include "glws.hpp"
|
||||
#include "retrace.hpp"
|
||||
|
||||
#include "apitrace_fbo_dump.hpp"
|
||||
|
||||
#include <EGL/egl.h>
|
||||
#include <EGL/eglext.h>
|
||||
#include <algorithm>
|
||||
@@ -632,6 +634,9 @@ bool makeCurrentInternal(Drawable *drawable, Drawable *readable, Context *contex
|
||||
gCurrentDrawable = drawable;
|
||||
gCurrentContext = eglContext;
|
||||
PrintGlIdentityOnce();
|
||||
// retrace::setUp() installs the GL dumper after glws::init(), so the earliest point at
|
||||
// which the dump hook can wrap it is the first time a context becomes current.
|
||||
mobilegl_trace_dump::InstallIfRequested();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user