# Loading a simple PVR image

**URL:** <https://forums.imgtec.com/t/loading-a-simple-pvr-image/2020>\
**Category:** PowerVR Insider\
**Created:** [March 26, 2014, 9:46am UTC](https://forums.imgtec.com/t/loading-a-simple-pvr-image/2020 "2014-03-26T09:46:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgu](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@dgu](https://forums.imgtec.com/u/dgu)\
**Post date:** [March 26, 2014, 9:46am UTC](https://forums.imgtec.com/t/loading-a-simple-pvr-image/2020/1 "2014-03-26T09:46:17Z")

</div>

Dear Team  
  
  
  
my code from the previous sdk work and always had been working since i updated the NEW sdk without changing my code i have :  
  
  
  
03-26 11:34:18.290: E/PVRTools(7316): PVRTTextureLoadFromPointer failed: glTexImage2D() failed.  
  
  
  
any idea ?  
  
thanks in advance  
  
kind regards  
  
david

---

<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:** [March 26, 2014, 10:20am UTC](https://forums.imgtec.com/t/loading-a-simple-pvr-image/2020/2 "2014-03-26T10:20:27Z")

</div>

Hi David,  
  
  
  
Do you mean you were using the 3.2 SDK, and you’re now using 3.3?  
  
  
  
Thanks,  
  
Joe

---

<div class="post-metadata">

**Author:** ![dgu](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@dgu](https://forums.imgtec.com/u/dgu)\
**Post date:** [March 26, 2014, 10:47am UTC](https://forums.imgtec.com/t/loading-a-simple-pvr-image/2020/3 "2014-03-26T10:47:15Z")

</div>

i am using the sdk 3.3

---

<div class="post-metadata">

**Author:** ![dgu](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@dgu](https://forums.imgtec.com/u/dgu)\
**Post date:** [March 26, 2014, 10:53am UTC](https://forums.imgtec.com/t/loading-a-simple-pvr-image/2020/4 "2014-03-26T10:53:06Z")

</div>

i rollback and back to working i am looking the CLI to see any change

---

<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:** [March 26, 2014, 11:12am UTC](https://forums.imgtec.com/t/loading-a-simple-pvr-image/2020/5 "2014-03-26T11:12:55Z")

</div>

Hi David,  
  
  
  
Are you using sRGB textures? It seems that there was a change to PVRTGetOGLES2TextureFormat() in PVRTTextureAPI to select an appropriate _internalformat_ enum depending on the values of the PVR header’s pixel format and colour space flags. Potentially, there’s an issue in your PVR files where the sRGB flag is set incorrectly.

---

<div class="post-metadata">

**Author:** ![dgu](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@dgu](https://forums.imgtec.com/u/dgu)\
**Post date:** [March 26, 2014, 11:17am UTC](https://forums.imgtec.com/t/loading-a-simple-pvr-image/2020/6 "2014-03-26T11:17:54Z")

</div>

probably ,anyway ,i have to regenerate the texture and it work now, that is a bit strange isnt it ?
