PDA

View Full Version : Perspective correction on Mali



himman
12-30-2009, 04:37 PM
Hi...

I'm trying to disable "Perspective Correction" in my implementation using "glHint(GL_PERSPECTIVE_CORRECTION_HINT,GL_FASTEST)", but it seems like not working...

I have same image with both "glHint(GL_PERSPECTIVE_CORRECTION_HINT,GL_FASTEST)" and "glHint(GL_PERSPECTIVE_CORRECTION_HINT,GL_NICEST)"..

The image always looked like having "Perspective Correction"..

How can I disable "Perspective Correction" on "libGLESv1_CM.dll" made by ARM..

Thanks..

ydroneaud
01-06-2010, 10:43 AM
According to its name, glHint() does only give hint to the OpenGL ES implementation. Your implementation is free to ignore those hints.

See manual ( http://www.khronos.org/opengles/sdk/1.1 ... glHint.xml (http://www.khronos.org/opengles/sdk/1.1/docs/man/glHint.xml) ).

BTW, you could call glGetError() after glHint() calls to check for an error returned by the OpenGL ES implementation ( http://www.khronos.org/opengles/sdk/1.1 ... tError.xml (http://www.khronos.org/opengles/sdk/1.1/docs/man/glGetError.xml) ).

You could also query the value associated to GL_PERSPECTIVE_CORRECTION_HINT
with glGetFixedv(GL_PERSPECTIVE_CORRECTION_HINT, &hint) ( http://www.khronos.org/opengles/sdk/1.1 ... /glGet.xml (http://www.khronos.org/opengles/sdk/1.1/docs/man/glGet.xml) ).

Regards.