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 ?
[fixed] GLES branch - CurrentRenderTargetSize ambiguation
Re: GLES branch - CurrentRenderTargetSize ambiguation
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.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Re: GLES branch - CurrentRenderTargetSize ambiguation
Fixed in the latest trunk and ogl-es. Thanks for report it.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes