[fixed] GLES branch - CurrentRenderTargetSize ambiguation
Posted: Tue Feb 09, 2016 11:42 am
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 ?
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 ?