[fixed] GLES branch - CurrentRenderTargetSize ambiguation

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
cheqnk
Posts: 5
Joined: Tue Feb 02, 2016 10:03 am

[fixed] GLES branch - CurrentRenderTargetSize ambiguation

Post 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 ?
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: GLES branch - CurrentRenderTargetSize ambiguation

Post 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.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: GLES branch - CurrentRenderTargetSize ambiguation

Post by Nadro »

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
Post Reply