evgl_surface_create(void *eng_data, Evas_GL_Config *cfg, int w, int h)
{
EVGL_Surface *sfc = NULL;
+ char *s = NULL;
+ int direct_override = 0, direct_mem_opt = 0, evgl_msaa = 0;
Eina_Bool need_reconfigure = EINA_FALSE;
Eina_Bool dbg;
}
INF("Creating special surface for GLES 1.x rendering");
- evgl_engine->funcs->gles1_surface_create(evgl_engine, eng_data, sfc, cfg, w, h);
+ evgl_msaa = evgl_engine->caps.msaa_samples[(int) cfg->multisample_bits - 1];
+ evgl_engine->funcs->gles1_surface_create(eng_data, sfc, cfg, w, h, evgl_msaa);
}
// Create internal buffers
int (*pbuffer_surface_destroy)(void *data, void *surface);
// Create a surface for 1.x rendering (could be pbuffer or xpixmap for instance)
- void *(*gles1_surface_create)(EVGL_Engine *evgl, void *data, EVGL_Surface *evgl_sfc, Evas_GL_Config *cfg, int w, int h);
+ void *(*gles1_surface_create)(void *data, EVGL_Surface *evgl_sfc, Evas_GL_Config *cfg, int w, int h, int evgl_msaa);
// Destroy 1.x surface (could be pbuffer or xpixmap for instance)
int (*gles1_surface_destroy)(void *data, EVGL_Surface *evgl_sfc);
// be shared with Evas.
// FIXME: Avoid passing evgl_engine around like that.
static void *
-evgl_eng_gles1_surface_create(EVGL_Engine *evgl EINA_UNUSED, void *data,
- EVGL_Surface *evgl_sfc,
- Evas_GL_Config *cfg, int w, int h)
+evgl_eng_gles1_surface_create(void *data, EVGL_Surface *evgl_sfc,
+ Evas_GL_Config *cfg, int w, int h, int evgl_msaa)
{
- Render_Engine *re = data;
-#ifdef GL_GLES
+ Render_Engine *re = (Render_Engine *)data;
Eina_Bool alpha = EINA_FALSE;
-#endif
int colordepth;
Pixmap px;
int msaa = 0, depth = 0, stencil = 0;
Visual *visual = NULL;
Eina_Bool retried = EINA_FALSE;
+ int val;
/* Now we need to iterate over all EGL configurations to check the compatible
* ones and finally check their visual ID. */