replicant-frameworks_native/opengl/tests/testViewport
Dan Bornstein 4bb407d47e Fix another set of out-of-date headers.
This time in XML files.

Change-Id: Iebe36810c3a2d7a6ff354f43808b1b8649b85637
2010-12-07 16:27:55 -08:00
..
res/values Fix another set of out-of-date headers. 2010-12-07 16:27:55 -08:00
src/com/android/test Add a test program for Sapphire viewport 2010-03-29 16:04:21 -07:00
Android.mk Declare that testViewport targets Froyo APIs 2010-04-29 18:45:11 +08:00
AndroidManifest.xml Fix another set of out-of-date headers. 2010-12-07 16:27:55 -08:00
README Add a test program for Sapphire viewport 2010-03-29 16:04:21 -07:00

README

Repro steps:

build, install and run the attached test program TestViewport.apk

Run on Sapphire with Froyo.

The program clears the screen to blue, then draws a full screen white quad that
is alligned to the screen.
(Therefore the whole screen should appear to be white.)


Note that screen is all white.

Rotate screen 90 degrees.

Expected: screen is still all white.

Actual: screen is blue with offset white rectangle.

This bug only happens on Sapphire, it works correctly on Passion.

What happens:

I think the bug is that the gl.glViewport() call in onSurfaceChanged() is
being ignored by the OpenGL driver.

NOTE: If a gl.glViewport call is added at the beginning of the onDrawFrame()
call (which means it is called before every draw), the program runs correctly.