I would like to know if there's an OpenGLES 1.x specicifation restriction on the number of window surfaces that we can create, in fact, as shown in the previous example, secondary surface creation always fails.

Thank you in advance.
gpgnews

06-03-2009, 07:18 PM

niallm

Re: Multiuple window surface

What's the EGL error that you're getting? I'm surprised the first call to eglCreateWindowSurface isn't failing since you're passing in a NULL window handle to each call.

06-04-2009, 04:58 AM

Xmas

Re: Multiuple window surface

Quote:

Originally Posted by gpgnews

I would like to know if there's an OpenGLES 1.x specicifation restriction on the number of window surfaces that we can create, in fact, as shown in the previous example, secondary surface creation always fails.

You cannot have more than one EGLWindowSurface for a specific window (in this case, the whole screen). That's an EGL restriction. What do you want to achieve with two surfaces for the same window?

Quote:

Originally Posted by niallm

What's the EGL error that you're getting? I'm surprised the first call to eglCreateWindowSurface isn't failing since you're passing in a NULL window handle to each call.

That's fine on an implementation without window system, and creates a surface for the entire screen.