Android screen rotation issue: testdrawchessboard.c sample + |
Android screen rotation issue: testdrawchessboard.c sample + |
Michael Davies
Guest
|
The plot thickens! I've discovered the testdrawchessboard.c sample is actually broken on Android, at least in my environment (latest SDL2 source from Mercurial, Android 7.0 (SDK 24), Android NDK 13.1). With no modifications to the sample source code, once the screen rotates, the software renderer no longer updates the screen, but it does keep the last image it rendered hanging around. I believe this bug has gone unnoticed because the DrawChessboard() method draws a static image, so it's entirely not obvious when the software renderer breaks and appears as if the sample is working. If you modify this line in DrawChessboard() from:Â
Cheers, Michael On 15 February 2017 at 13:40, Michael Davies wrote:
|
|||||||||||||||||
|