Hey, i am using edgelib for my game and have coded the 3d part of the game myself but managing textures using edgelib with upload and bind commands.. now the problem im facing is that the textures look perfect under windows but on device the textures are really messed up.. here are the screenshots:
under windows:

on n95 8gb (GLES):

it looks to be a problem with projection but im not sure what im doing wrong.. i am changing my projection matrix each frame using this code:
and i call this after a call to perspective3d.. btw i am using a 256x256 texture which is tiled across the surface, but that shouldnt matter i think.. i have tried increasing the tiling but the problem still persists of the messed up texture.. any help would be appreciated..
under windows:

on n95 8gb (GLES):

it looks to be a problem with projection but im not sure what im doing wrong.. i am changing my projection matrix each frame using this code:
- Code:
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
GLfloat aspectRatio = (GLfloat)(Ecd->dsp->GetWidth()) / (GLfloat)(Ecd->dsp->GetHeight());
#ifdef EGL_USEGLES
glFrustumf( FRUSTUM_LEFT * aspectRatio, FRUSTUM_RIGHT * aspectRatio, FRUSTUM_BOTTOM, FRUSTUM_TOP, FRUSTUM_NEAR, FRUSTUM_FAR );
#else
glFrustum( FRUSTUM_LEFT * aspectRatio, FRUSTUM_RIGHT * aspectRatio, FRUSTUM_BOTTOM, FRUSTUM_TOP, FRUSTUM_NEAR, FRUSTUM_FAR );
#endif
and i call this after a call to perspective3d.. btw i am using a 256x256 texture which is tiled across the surface, but that shouldnt matter i think.. i have tried increasing the tiling but the problem still persists of the messed up texture.. any help would be appreciated..


