Android- Fix crash when querying for surface when window info was not created yet
authorTzach Shabtay <tzachshabtay@gmail.com>
Sun, 11 Dec 2016 22:47:26 +0000 (17:47 -0500)
committerTzach Shabtay <tzachshabtay@gmail.com>
Sun, 11 Dec 2016 22:47:26 +0000 (17:47 -0500)
commit57ceff19b90b3326ed5a830f2f8f5e80037cf3d7
tree6627716f987831dc1215099c6ae3915574b4516a
parent1581ac7b8a161ff48dc291bcd7c397c328b20ce4
Android- Fix crash when querying for surface when window info was not created yet

HasSurface is called by ReadyToRender property to query if the surface
was created, but it’s possible that the window info was not created
yet, added a missing null check.
src/OpenTK/Platform/Android/AndroidGraphicsContext.cs