X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=eglwrap.c;h=fe7f736243195c0c51eaaedfa007dac30ed07e08;hb=bc106316b96ce7bfdbec3ee54ba37e49f156dea5;hp=f5da71726db498c972d04e78e67748bbca709c00;hpb=67c01d9b406d07b558255f35872cc549e4493e05;p=fips diff --git a/eglwrap.c b/eglwrap.c index f5da717..fe7f736 100644 --- a/eglwrap.c +++ b/eglwrap.c @@ -25,6 +25,7 @@ #include +#include "context.h" #include "eglwrap.h" #include "dlwrap.h" #include "metrics.h" @@ -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; }