# include "evas_xcb_xdefaults.h"
#endif
+#ifdef BUILD_ENGINE_SOFTWARE_XLIB
#include "evas_x_egl.h"
+#endif
int _evas_engine_soft_x11_log_dom = -1;
if (re->rects_prev[0]) evas_common_tilebuf_free_render_rects(re->rects_prev[0]);
if (re->rects_prev[1]) evas_common_tilebuf_free_render_rects(re->rects_prev[1]);
if (re->rects_prev[2]) evas_common_tilebuf_free_render_rects(re->rects_prev[2]);
+#ifdef BUILD_ENGINE_SOFTWARE_XLIB
_output_egl_shutdown(re);
+#endif
free(re);
}
#endif
#include "evas_common.h"
#include "evas_macros.h"
-#include "evas_x_egl.h"
#ifdef HAVE_DLSYM
# include <dlfcn.h> /* dlopen,dlclose,etc */
#endif
#ifdef BUILD_ENGINE_SOFTWARE_XLIB
+#include "evas_x_egl.h"
#define EGL_SURFACE_TYPE 0x3033
#define EGL_WINDOW_BIT 0x0004
return egl.GetDisplay(d);
#else
return NULL;
+ (void)d;
#endif
}
#ifdef BUILD_ENGINE_SOFTWARE_XLIB
if (!_egl_find()) return;
egl.Terminate(ed);
+#else
+ (void)ed;
#endif
}
return 1;
#else
return 0;
+ (void)ed;
#endif
}
return eglconfig;
#else
return NULL;
+ (void)ed;
#endif
}
+#ifdef BUILD_ENGINE_SOFTWARE_XLIB
void *
_egl_x_win_surf_new(void *ed, Window win, void *config)
{
-#ifdef BUILD_ENGINE_SOFTWARE_XLIB
if (!_egl_find()) return NULL;
return egl.CreateWindowSurface(ed, config, win, NULL);
-#else
- return NULL;
-#endif
}
+#endif
void
_egl_x_win_surf_free(void *ed, void *surf)
#ifdef BUILD_ENGINE_SOFTWARE_XLIB
if (!_egl_find()) return;
egl.DestroySurface(ed, surf);
+#else
+ (void)ed;
+ (void)surf;
#endif
}
return NULL;
#else
return NULL;
+ (void)ed;
+ (void)surf;
+ (void)stride;
#endif
}
{
#ifdef BUILD_ENGINE_SOFTWARE_XLIB
egl.UnlockSurface(ed, surf);
-#endif
+#else
+ (void)ed;
+ (void)surf;
+#endif
}
void
if (vsync) egl.SwapInterval(ed, 1);
else egl.SwapInterval(ed, 0);
egl.SwapBuffers(ed, surf);
-#endif
+#else
+ (void)ed;
+ (void)surf;
+ (void)vsync;
+#endif
}
+#ifdef BUILD_ENGINE_SOFTWARE_XLIB
Outbuf *
evas_software_egl_outbuf_setup_x(int w, int h, int rot, Outbuf_Depth depth,
Display *disp, Drawable draw, Visual *vis,
(void) vis;
return NULL;
}
+#endif