Page 1 of 1

[fixed] GLES branch - CurrentRenderTargetSize ambiguation

Posted: Tue Feb 09, 2016 11:42 am
by cheqnk
Dear all,

I'm using Irrlicht GLES branch on latest revision, and found out that these variables are ambigue.
- CurrentRendertargetSize
- CurrentRenderTargetSize

This will cause incorrect position calculation result when rendering into texture for several functions such as draw2DImageBatch.
Symptoms:
CurrentRendertargetSize will never be updated, so it will become [0, 0] forever.
Meanwhile, getCurrentRenderTargetSize will use CurrentRendertargetSize which is [0, 0] and return screen size rather than renderer size.
And, when changing renderer target, CurrentRenderTargetSize will be updated, but CurrentRendertargetSize will not be.

I don't know why there are two similar variable used, but it seems like kind of typo ?

Re: GLES branch - CurrentRenderTargetSize ambiguation

Posted: Tue Feb 09, 2016 5:24 pm
by Nadro
It looks like a copy-paste problem. I'll fix that however not until upcoming weekend when I'll be able to back to active irr development.

Re: GLES branch - CurrentRenderTargetSize ambiguation

Posted: Sat Feb 13, 2016 11:14 am
by Nadro
Fixed in the latest trunk and ogl-es. Thanks for report it.