From 55c94ccd495aa19784cb4ca9a1fe51fad9631542 Mon Sep 17 00:00:00 2001 From: David Li Date: Fri, 4 Mar 2011 17:50:48 -0800 Subject: Added screenshot after glDraw* option to GLES2 Debugger Also added timing mode option using utils/Timers.h. Factored out common code to reduce size. Improved Protobuf message. Uploads data from glBufferData and glBufferSubData. Change-Id: Iaae5e706235d942df81c7eada7223fb0b0583911 Signed-off-by: David Li --- opengl/libs/EGL/egl.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'opengl/libs/EGL') diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp index e427504..8e4b0ee 100644 --- a/opengl/libs/EGL/egl.cpp +++ b/opengl/libs/EGL/egl.cpp @@ -1650,6 +1650,10 @@ __eglMustCastToProperFunctionPointerType eglGetProcAddress(const char *procname) EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface draw) { + EGLBoolean Debug_eglSwapBuffers(EGLDisplay dpy, EGLSurface draw); + if (gEGLDebugLevel > 0) + Debug_eglSwapBuffers(dpy, draw); + clearError(); SurfaceRef _s(draw); -- cgit v1.1