[Mesa-dev] help:read data out from Pixel buffer surface

2015-08-04 Thread InjuredWolf
background:having android apps run on X11 on base mesa OES lib: libgles1-mesa-dev libgles2-mesa-dev libosmesa6-dev what to do: render all surfaces to program memory. problems: 1) glMapBuffer returns NULL.OES_mapbuffer seemed not work. though the extension was available. 2) GL_READ_ONLY ,

[Mesa-dev] help:glGetString(GL_VERSION/GL_EXTENSIONS/GL_VENDER/DL_RENDERER) returns NULL

2015-08-04 Thread InjuredWolf
the original code worked because it was called after result = eglMakeCurrent(display, surface, surface, context); I wanted to use OSMesa. After I changed the call to OSMesaMakeCurrent.glGetString() returned NULL. Please advise. thanks h___