matrix3d/spriteflexjs

Problem with scaled beginBitmapFill

Diamanter opened this issue · 3 comments

I found that several beginBitmapFill with scaled matrix work wrong.

for (var i:int=0; i<numChars; ++i) {
    target.beginBitmapFill(bmd, new Matrix(0.5,0,0,0.5,0,0), true, true);
    target.drawRect(i*50, 0, 50, 50);
}

Only first bitmap fill works correctly. After that ctx.matr has wrong values.
I have no idea how to fix it in gldraw() without context.save() function.

我之前实现了,context.save.但是后来我给删除了,为了更好的性能。而且我认为这个功能不是很重要

Я понял. Пока сделал такой трюк:
Diamanter@3523bd8

Теперь BitmapFont в моём проекте наконец заработал.

this is a bug,i will try fix it ,one or two days