Skip to content

Commit

Permalink
GLSupport: X11EGLWindow - fix shadowing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Feb 2, 2021
1 parent 4e13dce commit 9046fe4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions RenderSystems/GLSupport/src/EGL/X11/OgreX11EGLWindow.cpp
Expand Up @@ -101,7 +101,6 @@ namespace Ogre {

void X11EGLWindow::getLeftAndTopFromNativeWindow( int & left, int & top, uint width, uint height )
{
NativeDisplayType mNativeDisplay = mGLSupport->getNativeDisplay();
left = DisplayWidth((Display*)mNativeDisplay, DefaultScreen(mNativeDisplay))/2 - width/2;
top = DisplayHeight((Display*)mNativeDisplay, DefaultScreen(mNativeDisplay))/2 - height/2;
}
Expand Down Expand Up @@ -351,7 +350,6 @@ namespace Ogre {
if (mClosed || !mWindow)
return;

NativeDisplayType mNativeDisplay = mGLSupport->getNativeDisplay();
XWindowAttributes windowAttrib;

Window parent, root, *children;
Expand Down Expand Up @@ -379,7 +377,6 @@ namespace Ogre {
{
if (mGLSupport->mAtomFullScreen != None)
{
NativeDisplayType mNativeDisplay = mGLSupport->getNativeDisplay();
XClientMessageEvent xMessage;

xMessage.type = ClientMessage;
Expand Down Expand Up @@ -415,6 +412,7 @@ namespace Ogre {

unsigned int vsyncInterval = 1;

mNativeDisplay = mGLSupport->getNativeDisplay();
getLeftAndTopFromNativeWindow(left, top, width, height);

mIsFullScreen = fullScreen;
Expand Down

0 comments on commit 9046fe4

Please sign in to comment.