# RenderToTexture problem on WinXP

**URL:** <https://forums.imgtec.com/t/rendertotexture-problem-on-winxp/56>\
**Category:** PowerVR Insider\
**Created:** [March 18, 2008, 8:25am UTC](https://forums.imgtec.com/t/rendertotexture-problem-on-winxp/56 "2008-03-18T08:25:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://forums.imgtec.com/u/erik)\
**Post date:** [March 18, 2008, 8:25am UTC](https://forums.imgtec.com/t/rendertotexture-problem-on-winxp/56/1 "2008-03-18T08:25:41Z")

</div>

Hello,

  

I&nbsp;have recently downloaded the Opengl es 1.1 SDK&nbsp; (OGLES-1.1\_WINDOWS\_PCEMULATION\_2.02.22.0756) and I have a&nbsp;problem that you might be able to help me with.&nbsp;The problem occurs in the training course "09\_RenderToTexture". On my old laptop (Dell D800 with NVIDIA GeForce4) it works fine but with my new laptop (Dell 630 with Mobile Intel(R) 965 Express Chipset Family) it doesn't. I'm using Windows XP.
  

  
Problem:   
In the function OGLESRenderToTexture::InitView() the calls to eglCreatePbufferSurface returns 0x00000000 which makes the program to end. 
  

Investigation note:   
The previous call to eglChooseConfig function returns true and I get a configuration (0). If I add calls to eglGetError() it returns EGL\_SUCCESS before I call eglCreatePbufferSurface and EGL\_BAD\_MATCH after. I have tried to use different configuration and pbuffer attributes but with no success. I have also downloaded the latest drivers from Intel (6.14.10.4924).

  

What is going on?

---

<div class="post-metadata">

**Author:** ![andrew-2](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@andrew-2](https://forums.imgtec.com/u/andrew-2)\
**Post date:** [March 18, 2008, 9:34am UTC](https://forums.imgtec.com/t/rendertotexture-problem-on-winxp/56/2 "2008-03-18T09:34:56Z")

</div>

Hello Erik,

Have you checked the [Reference Manual](http://www.khronos.org/opengles/documentation/opengles1_1/gl_egl_ref_1_1_20041110/eglCreatePbufferSurface.html)?
  

&nbsp;
  

"EGL\_BAD\_MATCH is generated if `config` does not support rendering to pixel buffers (the `EGL_SURFACE_TYPE` attribute does not contain `EGL_PBUFFER_BIT`)."
  

&nbsp;
  

It sounds&nbsp;as though your new GPU doesn't support all the extensions that your previous GPU did. You will need a pbuffer extension, you can check this with a GPU caps view tool.
  

&nbsp;
  

Hope this helps,
  

Andrew

---

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://forums.imgtec.com/u/erik)\
**Post date:** [March 18, 2008, 11:41am UTC](https://forums.imgtec.com/t/rendertotexture-problem-on-winxp/56/3 "2008-03-18T11:41:44Z")

</div>

Hi Andrew,

  

Thanks for your quick response. Yes, I have checked the ref manual but I can still not understand why the tutorial isn't working. In the SelectEGLConfig() function a configuration is choosen with the EGL\_SURFACE\_TYPE attribute that does&nbsp;contain `EGL_PBUFFER_BIT. `The eglChooseConfig function is successfully executed and no error reported.
  

&nbsp;
  

I downloaded a GPU caps view tool and it reports that there is an extension called WGL\_ARB\_pbuffer available and supported. I'm new to these things so I'm not sure if that is the correct extension to look for.
  

&nbsp;
  

It seems like there is a bug in the eglCreatePbuffer functionality? I get a config that should support pbuffer but I can still not create one :/
  

&nbsp;
  

/Erik

---

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://forums.imgtec.com/u/erik)\
**Post date:** [March 18, 2008, 1:40pm UTC](https://forums.imgtec.com/t/rendertotexture-problem-on-winxp/56/4 "2008-03-18T13:40:25Z")

</div>

I just noticed that there is a printout in the output window right after the call to eglCreatePbufferSurface(…)

&nbsp;
  

  

\*ERROR\* Failed to find a suitable Pixel Format for PBuffer !

---

<div class="post-metadata">

**Author:** ![andrew-2](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@andrew-2](https://forums.imgtec.com/u/andrew-2)\
**Post date:** [March 18, 2008, 1:55pm UTC](https://forums.imgtec.com/t/rendertotexture-problem-on-winxp/56/5 "2008-03-18T13:55:46Z")

</div>

Erik,
  

It sounds as though render to texture&nbsp;may not be&nbsp;supported by your GPU, especially as the same demo worked with your old laptop.
  

&nbsp;
  

Is there a way you can try the demo on a different machine?
  

&nbsp;
  

Andrew
