Hey, now i have 2 problems..
1) All opengles 1.1 calls like vbos and texparameteri bring up a 'feature not supported' error on nokia n82 and n95 devices even though they support opengles 1.1
2) Even trying to render using glDrawElements, i get to render everything perfectly under windows.. on device, it shows all 2d blt calls but nothing 3d.. any guess what could be going different between gl and gles??
I finally fixed problem 2, turns out the default frustrum clips everything in the scene.. i sorted it out to my needs and now it works fine.. i still cant figure out how to fix problem 1..
Hi,
EDGELIB doesn't actually specify an OpenGL ES version for Symbian, so I'm not sure why these functions fail. Perhaps you can try to call eglInitialize(eglGetDisplay(EGL_DEFAULT_DISPLAY), vermajor, verminor) and see which OpenGL ES version it returns for your devices? Try to call it before EDGELIB does (for example, in OnDisplayConfig).
FWIW, calling eglInitialize() only gives you the EGL version. To obtain the GL|ES version you have to put in more effort, i.e. create a GL|ES context, make it current, then issue glGetString(GL_VERSION) etc.
Im getting egl as 1.1 and the glgetstring also returns gles-cm 1.1 .. so the device says its 1.1 and still im getting a feature not supported.. and just to remove doubts im a 100% positive its the gles code giving the error, cause commmenting and uncommenting glTexParamteri hides and shows the error..
RapchikProgrammer wrote:Im getting egl as 1.1 and the glgetstring also returns gles-cm 1.1 ..
That looks like a broken (GL|ES) implementation. What parameters are you calling it with? Also, can you try the same with glTexParameterf()?
- Code:
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
and yes i tried using parameterf and it works..
Fixed it, i just noticed this part in the documentation that helped me fix it:
1. Go to the epoc32\release\armv5\lib\ -directory under the SDK installation (typically C:\Symbian\9.1\S60_3rd\Epoc32\release\armv5\lib\).
2. Copy the file libGLES_CM.dso over the file libgles_cm{000a0000}.dso.
3. Copy the file libGLES_CM.lib over the file libgles_cm{000a0000}.lib.