Fixed issue #4345.
Merge pull request #4360 from nfoti/master

Fix issue #4345: graphics test failure