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