# glMapBuffer function not in libGLESv2\_PVRTRACE.so

**URL:** https://forums.imgtec.com/t/glmapbuffer-function-not-in-libglesv2-pvrtrace-so/1960
**Category:** PowerVR Insider
**Tags:** pvrtrace
**Created:** [December 12, 2013, 9:08am UTC](https://forums.imgtec.com/t/glmapbuffer-function-not-in-libglesv2-pvrtrace-so/1960 "2013-12-12T09:08:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![aslater](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@aslater](https://forums.imgtec.com/u/aslater)
#### Post date: [December 12, 2013, 9:08am UTC](https://forums.imgtec.com/t/glmapbuffer-function-not-in-libglesv2-pvrtrace-so/1960/1 "2013-12-12T09:08:22Z")

</div>

Hello,  
  
  
  
Apologies for raising this as this might already be a known issue.  
  
  
  
I’m trying to use PVRTRACE on an un-rooted Android device and so i’m linking my application with your shim libs. My application the GL extension function glMapBufferOES on devices that support it but as this function isn’t in libGLESv2\_PVRTRACE.so i get linker errors.  
  
  
  
libGLESv2\_PVRTRACE.so does contain glMapBufferRange but as this function isn’t available in Android’s libGLESv2.so this results in having to have a different code path if i intend to use PVRTRACE. This isn’t a problem however it could be useful to make sure your shim libs contain the same functions as the Android libs.  
  
  
  
Many thanks,  
  
Andy

---

<div class="post-metadata">

### Author: ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)
#### Post date: [December 12, 2013, 9:42am UTC](https://forums.imgtec.com/t/glmapbuffer-function-not-in-libglesv2-pvrtrace-so/1960/2 "2013-12-12T09:42:15Z")

</div>

Hi Andy,  
  
  
  
Thanks for reporting this. I’ve filed the issue as BRN46141 in our internal bug tracker so a member of the PVRTrace team can investigate it.  
  
  
  
Joe

---

<div class="post-metadata">

### Author: ![aslater](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@aslater](https://forums.imgtec.com/u/aslater)
#### Post date: [December 12, 2013, 10:37am UTC](https://forums.imgtec.com/t/glmapbuffer-function-not-in-libglesv2-pvrtrace-so/1960/3 "2013-12-12T10:37:04Z")

</div>

Thanks for the quick response Joe.  
  
  
  
Just to let you know that i can’t actually use the glMapBufferRange function as an alternative as it causes PVRTRACE startup problems.  
  
  
  
If i add the following to my code:

````auto
extern "C" {<br />
GL_APICALL void* GL_APIENTRY glMapBufferRange( GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);<br />
}<br />

```<br />
<br />

````

```
glMapBufferRange(GLenum(0), GLintptr(0), GLsizeiptr(0), GLbitfield(0));<br />

```

```auto
<br />
Then PVRTRACE fails to startup:<br />
<br />

```

12-12 11:32:15.476: I/PVRTrace(I)(32617): Loading host library '/system/lib/libGLESv2.so’  
  
12-12 11:32:15.476: I/PVRTrace(I)(32617): Host library ‘/system/lib/libGLESv2.so’ loaded  
  
12-12 11:32:15.476: I/PVRTrace(I)(32617): Error loading library glReadBuffer  
  
12-12 11:32:15.476: I/PVRTrace(I)(32617): Error loading library glDrawRangeElements  
  
12-12 11:32:15.476: I/PVRTrace(I)(32617): Error loading library glTexImage3D  
  
…  
  
12-12 11:32:15.484: I/PVRTrace(I)(32617): Error loading library glInvalidateSubFramebuffer  
  
12-12 11:32:15.484: I/PVRTrace(I)(32617): Error loading library glTexStorage2D  
  
12-12 11:32:15.484: I/PVRTrace(I)(32617): Error loading library glTexStorage3D  
  
12-12 11:32:15.484: I/PVRTrace(I)(32617): Error loading library glGetInternalformativ  
  
12-12 11:32:15.484: I/PVRTrace(I)(32617): PVRTrace ES2 - ERROR: failed to load entry points from host library  
  
12-12 11:32:15.484: I/PVRTrace(I)(32617): Please check library paths in pvrtrace.cfg

```auto

```

---

<div class="post-metadata">

### Author: ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)
#### Post date: [January 9, 2014, 3:17pm UTC](https://forums.imgtec.com/t/glmapbuffer-function-not-in-libglesv2-pvrtrace-so/1960/4 "2014-01-09T15:17:52Z")

</div>

Hi Andy,  
  
  
  
glMapBufferRange is not supported by PVRTrace. This is because it relies on an extension which is not implemented in our reference driver (GL\_EXT\_map\_buffer\_range).  
  
  
  
For more information about the OpenGL ES extensions supported in our reference graphics driver, please refer to the “PowerVR Supported Extensions - OpenGL ES and EGL” document in our SDK.  
  
  
  
Thanks,  
  
Joe

---

<div class="post-metadata">

### Author: ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)
#### Post date: [January 21, 2014, 11:36am UTC](https://forums.imgtec.com/t/glmapbuffer-function-not-in-libglesv2-pvrtrace-so/1960/5 "2014-01-21T11:36:20Z")

</div>

Hi Andy,  
  
  
  
Can you clarify why you’ve rejected my previous post? glMapBufferRange is core functionality in OpenGL ES 3.0, but we have no plans to expose it in our OpenGL ES 2.0 driver as an extension.  
  
  
  
Thanks,  
  
Joe
