Bug in Ogre 1.8 With ContentScalingFactor

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
anlumo
Gnoblar
Posts: 21
Joined: Thu Oct 05, 2006 2:55 am

Bug in Ogre 1.8 With ContentScalingFactor

Post by anlumo »

Hi,

I think I've found a bug in the new GLES2 implementation in Ogre 1.8.

In EAGL2Window::create at the bottom there is the following line:

Code: Select all

// Resize, taking content scaling factor into account
resize(mWidth, mHeight);
However, in EAGL2Window::resize, the second check is:

Code: Select all

if(mWidth == width && mHeight == height)
            return;
Since the method is called with mWidth and mHeight as parameters, this condition always evaluates to true, and thus the resize call does nothing. This causes the content scaling factor to not be set properly on the view, and so the framebuffer is not scaled.

Should I file a bug about this?
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: Bug in Ogre 1.8 With ContentScalingFactor

Post by masterfalcon »

Yes, please. Additionally, are you calling resize directly? What is the usage situation?
anlumo
Gnoblar
Posts: 21
Joined: Thu Oct 05, 2006 2:55 am

Re: Bug in Ogre 1.8 With ContentScalingFactor

Post by anlumo »

masterfalcon wrote:Additionally, are you calling resize directly? What is the usage situation?
No, I'm not calling it directly.
anlumo
Gnoblar
Posts: 21
Joined: Thu Oct 05, 2006 2:55 am

Re: Bug in Ogre 1.8 With ContentScalingFactor

Post by anlumo »

User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: Bug in Ogre 1.8 With ContentScalingFactor

Post by masterfalcon »

Thanks for filing the bug. If you're not calling it directly then how is it being called?
anlumo
Gnoblar
Posts: 21
Joined: Thu Oct 05, 2006 2:55 am

Re: Bug in Ogre 1.8 With ContentScalingFactor

Post by anlumo »

masterfalcon wrote:Thanks for filing the bug. If you're not calling it directly then how is it being called?
As I said in the initial post, EAGL2Window::create calls it.