StarlingGraphics / Starling-Extension-Graphics

flash.display.Graphics style extension for the Starling Flash GPU rendering framework
https://github.com/StarlingGraphics/Starling-Extension-Graphics/wiki
MIT License
285 stars 88 forks source link

Context lost throws null pointer exception on windows 7 #41

Closed SmikeSix closed 11 years ago

SmikeSix commented 11 years ago

Hi im running into the issue that on context lost(via strg+alt+del) following null pointer exception gets thrown: at starling.display.materials::StandardMaterial/drawTriangles() ... StandardMaterial.as:135

Thats the code inside of StatusBar.as

var bgRect : Shape = new Shape(); bgRect.graphics.clear(); bgRect.graphics.lineStyle(1, 0x000000, 0.5); bgRect.graphics.beginFill(0xFFFFFF, 1); bgRect.graphics.drawRoundRect(0, 0, 155, 55, 12); // borderCorner); bgRect.graphics.endFill(); this.addChild(bgRect);

jonathanrpace commented 11 years ago

Hi Sandler - I'm not able to reproduce this error.

I fixed a load of context loss bugs a little while ago, and I notice that the latest version of StandardMaterial has a blank line at line 135 - is it possible you're not running against the latest version of the extension?

If you are - any other information you could give me to help track this down would be most appreciated.

SmikeSix commented 11 years ago

Hey you´r right. My github build was not up to date (even if it showed that it was, had to reinstall it) Can be closed! And thanks for the fast replay

jonathanrpace commented 11 years ago

No problem - glad it's working!