X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=eglwrap.c;h=913532ef023df21c7b6765a82f25649a7f0de237;hb=de8d00c71c256ab967ece877050b5dbffe66b19d;hp=f5da71726db498c972d04e78e67748bbca709c00;hpb=67c01d9b406d07b558255f35872cc549e4493e05;p=fips diff --git a/eglwrap.c b/eglwrap.c index f5da717..913532e 100644 --- a/eglwrap.c +++ b/eglwrap.c @@ -25,6 +25,7 @@ #include +#include "context.h" #include "eglwrap.h" #include "dlwrap.h" #include "metrics.h" @@ -79,11 +80,11 @@ eglSwapBuffers (EGLDisplay dpy, EGLSurface surface) EGLWRAP_DEFER_WITH_RETURN (ret, eglSwapBuffers, dpy, surface); - metrics_counter_stop (); + context_counter_stop (); - metrics_end_frame (); + context_end_frame (); - metrics_counter_start (); + context_counter_start (); return ret; } @@ -109,16 +110,11 @@ eglMakeCurrent (EGLDisplay display, EGLSurface draw, EGLSurface read, { EGLBoolean ret; - metrics_info_fini (); - - fips_dispatch_init (FIPS_API_EGL); + context_leave (); EGLWRAP_DEFER_WITH_RETURN (ret, eglMakeCurrent, display, draw, read, context); - metrics_info_init (); - - metrics_set_current_op (METRICS_OP_SHADER + 0); - metrics_counter_start (); + context_enter (FIPS_API_EGL, context); return ret; }