February 19, 2018, 11:37:49 AM

Author Topic: [SOLVED] Draw.text cannot work on Windows or neko  (Read 61 times)

Oberon

  • Newbie
  • *
  • Posts: 1
    • View Profile
[SOLVED] Draw.text cannot work on Windows or neko
« on: January 22, 2018, 07:22:22 PM »
====================SOLUTION==================
I solved this via replace render method with renderAtlas and renderAtlas doesn't require a buffer so I haven't to deal with HXP.buffer.

=====================ISSUE====================
Draw.text called Text.render in its body and Text.render referenced HXP.buffer.

However, HXP.buffer is only available on flash and h5(on other platforms, it keeps null), which causes a null object reference in cpp or neko and fails.

I just wanna watch some text while testing, how to solve this?