# glDrawTex In PowerVR MBXLite

**URL:** <https://forums.imgtec.com/t/gldrawtex-in-powervr-mbxlite/1177>\
**Category:** PowerVR Insider\
**Created:** [September 7, 2011, 7:08am UTC](https://forums.imgtec.com/t/gldrawtex-in-powervr-mbxlite/1177 "2011-09-07T07:08:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luffy](https://avatars.discourse-cdn.com/v4/letter/l/c67d28/32.png) [@luffy](https://forums.imgtec.com/u/luffy)\
**Post date:** [September 7, 2011, 7:08am UTC](https://forums.imgtec.com/t/gldrawtex-in-powervr-mbxlite/1177/1 "2011-09-07T07:08:23Z")

</div>

HI. I found GL\_OES\_draw\_texture supported In PowerVR MBXLite.  
  
  
I have no idea why this code doesn’t work. anyone can help me? thanks a lot.  
  
  
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
  
  
long&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;texRect[4] = {0, 0, 256, 256};  
  
  
  
  
  
glClear(GL\_COLOR\_BUFFER\_BIT);  
  
  
  
  
  
glDisable(GL\_DEPTH\_TEST);  
  
  
glDisable(GL\_ALPHA\_TEST);  
  
  
glEnable(GL\_TEXTURE\_2D);  
  
  
  
  
  
glBindTexture(GL\_TEXTURE\_2D, textureid);  
  
  
glTexImage2D(GL\_TEXTURE\_2D, 0, GL\_RGB, 256, 256, 0, GL\_RGB, GL\_UNSIGNED\_BYTE, testbmp);  
  
  
glTexParameterx(GL\_TEXTURE\_2D, GL\_TEXTURE\_MIN\_FILTER, GL\_LINEAR);  
  
  
glTexParameterx(GL\_TEXTURE\_2D, GL\_TEXTURE\_MAG\_FILTER, GL\_LINEAR);  
  
  
  
  
  
glTexParameteriv(GL\_TEXTURE\_2D, GL\_TEXTURE\_CROP\_RECT\_OES, texRect);  
  
  
  
  
  
glDrawTexxOES(0, 0, 0, 256 \* 65536, 256 \* 65536);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
  
  
  
  
  
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
  
  
  
  
  
buy the way, this code work well when i change to Hybrid opengl es library.
