Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 138093 | Differences between
and this patch

Collapse All | Expand All

(-)ogrenew.orig/RenderSystems/GL/src/SDL/OgreSDLWindow.cpp (-2 / +4 lines)
Lines 57-64 Link Here
57
57
58
    SDLWindow::~SDLWindow()
58
    SDLWindow::~SDLWindow()
59
    {
59
    {
60
        if (mScreen != NULL)
60
        // according to http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fSetVideoMode
61
            SDL_FreeSurface(mScreen);
61
        // never free the surface returned from SDL_SetVideoMode
62
        /*if (mScreen != NULL)
63
            SDL_FreeSurface(mScreen);*/
62
64
63
    }
65
    }
64
66
(-)ogrenew.orig/RenderSystems/GL/include/OgreSDLWindow.h (+4 lines)
Lines 70-75 Link Here
70
        }
70
        }
71
71
72
		bool requiresTextureFlipping() const { return false; }
72
		bool requiresTextureFlipping() const { return false; }
73
	bool isFullScreen(void) const
74
	{
75
	    return ( mScreen->flags & SDL_FULLSCREEN ) == SDL_FULLSCREEN;
76
	}
73
    };
77
    };
74
}
78
}
75
79

Return to bug 138093