1Repro steps:
2
3build, install and run the attached test program TestViewport.apk
4
5Run on Sapphire with Froyo.
6
7The program clears the screen to blue, then draws a full screen white quad that
8is alligned to the screen.
9(Therefore the whole screen should appear to be white.)
10
11
12Note that screen is all white.
13
14Rotate screen 90 degrees.
15
16Expected: screen is still all white.
17
18Actual: screen is blue with offset white rectangle.
19
20This bug only happens on Sapphire, it works correctly on Passion.
21
22What happens:
23
24I think the bug is that the gl.glViewport() call in onSurfaceChanged() is
25being ignored by the OpenGL driver.
26
27NOTE: If a gl.glViewport call is added at the beginning of the onDrawFrame()
28call (which means it is called before every draw), the program runs correctly.
29