<font size=2 face="sans-serif">Hello Again,</font>
<br>
<br><font size=2 face="sans-serif">Just fixed the issue:</font>
<br>
<br><font size=2 face="sans-serif">This seems to be something to do with
the order in which the arguments are given to createSurface that was causing
the issue.</font>
<br>
<br><font size=2 face="sans-serif"> pANWContainer->surface_control
=</font>
<br><font size=2 face="sans-serif">           
pSFContainer->composer_client->createSurface(</font>
<br><font size=2 face="sans-serif">           
    String8("Waffle Surface"),0,</font>
<br><font size=2 face="sans-serif">           
droid_magic_surface_width, droid_magic_surface_height,</font>
<br><font size=2 face="sans-serif">           
PIXEL_FORMAT_RGB_888);</font>
<br>
<br><font size=2 face="sans-serif">Now this is solved. </font>
<br><font size=2 face="sans-serif">But the code need to branch based on
Android version make it work on old android versions as well as newer ones.</font>
<br><font size=2 face="sans-serif"><br>
Thanks & Regards<br>
Arun S L</font>
<br>
<br>
<br>
<table width=100% style="border-collapse:collapse;">
<tr valign=top height=8>
<td width=96 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 face="sans-serif">Arun
Sl/HYD/TCS</font>
<tr valign=top height=8>
<td width=96 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 face="sans-serif">waffle@lists.freedesktop.org</font>
<tr valign=top height=8>
<td width=96 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 face="sans-serif">02/27/2014
03:12 PM</font>
<tr valign=top height=8>
<td width=96 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 face="sans-serif">waffle
for android-4.1.2_r1 </font></table>
<br>
<hr noshade>
<br>
<br><font size=2 face="sans-serif">Hello,</font>
<br>
<br><font size=2 face="sans-serif">I have tried latest waffle against android-4.1.2_r1
but it segfaults.</font>
<br>
<br><font size=2 face="sans-serif">So to avoid the same, I did make the
following changes:</font>
<br>
<br><font size=2 face="sans-serif">struct wcore_window*</font>
<br><font size=2 face="sans-serif">droid_window_create(struct wcore_platform
*wc_plat,</font>
<br><font size=2 face="sans-serif">           
        struct wcore_config *wc_config,</font>
<br><font size=2 face="sans-serif">           
        int width,</font>
<br><font size=2 face="sans-serif">           
        int height)</font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif">    struct droid_window *self;</font>
<br><font size=2 face="sans-serif">    struct wegl_config *config
= wegl_config(wc_config);</font>
<br><font size=2 face="sans-serif">    struct droid_display *dpy
= droid_display(wc_config->display);</font>
<br><font size=2 face="sans-serif">    bool ok = true;</font>
<br>
<br><font size=2 face="sans-serif">    self = wcore_calloc(sizeof(*self));</font>
<br><font size=2 face="sans-serif">    if (self == NULL)</font>
<br><font size=2 face="sans-serif">        return NULL;</font>
<br>
<br><font size=2 face="sans-serif">    self->pANWContainer
= droid_create_surface(width, height,</font>
<br><font size=2 face="sans-serif">           
                     
             dpy->pSFContainer);</font>
<br><font size=2 face="sans-serif">    if (!self->pANWContainer)</font>
<br><font size=2 face="sans-serif">        goto error1;</font>
<br>
<br><font size=2 face="sans-serif">    ok = wegl_window_init(&self->wegl,
wc_config,</font>
<br><font size=2 face="sans-serif">           
              (intptr_t) *((intptr_t*)(self->pANWContainer)));</font>
<br><font size=2 face="sans-serif">    if (!ok)</font>
<br><font size=2 face="sans-serif">        goto error;</font>
<br>
<br><font size=2 face="sans-serif">    return &self->wegl.wcore;</font>
<br>
<br><font size=2 face="sans-serif">error:</font>
<br><font size=2 face="sans-serif">    droid_window_destroy(&self->wegl.wcore);</font>
<br><font size=2 face="sans-serif">error1:</font>
<br><font size=2 face="sans-serif">    return NULL;</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">The waffle is still not working against
even gl_basic, I am getting the following error:</font>
<br>
<br><font size=2 face="sans-serif">gl_basic --platform=android --api=gles2</font>
<br><font size=2 face="sans-serif">gl_basic: error: WAFFLE_ERROR_UNKNOWN:
Unable to get android::SurfaceControl</font>
<br>
<br><font size=2 face="sans-serif">Can anyone guide me here?</font>
<br><font size=2 face="sans-serif"><br>
Thanks & Regards<br>
Arun S L</font>
<br>
<br><p>=====-----=====-----=====<br>
Notice: The information contained in this e-mail<br>
message and/or attachments to it may contain <br>
confidential or privileged information. If you are <br>
not the intended recipient, any dissemination, use, <br>
review, distribution, printing or copying of the <br>
information contained in this e-mail message <br>
and/or attachments to it are strictly prohibited. If <br>
you have received this communication in error, <br>
please notify us by reply e-mail or telephone and <br>
immediately and permanently delete the message <br>
and any attachments. Thank you</p>

<p></p>