OPENGL: Cleanup.
svn-id: r53436
This commit is contained in:
parent
34302765ca
commit
54f559dc51
1 changed files with 4 additions and 4 deletions
|
@ -226,7 +226,7 @@ void OSystem_SDL::deinit() {
|
||||||
_mutexManager = 0;
|
_mutexManager = 0;
|
||||||
|
|
||||||
#ifdef USE_OPENGL
|
#ifdef USE_OPENGL
|
||||||
free((void *)_graphicsModes),
|
delete[] _graphicsModes;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
|
@ -393,7 +393,7 @@ void OSystem_SDL::setupGraphicsModes() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Allocate enough space for merged array of modes
|
// Allocate enough space for merged array of modes
|
||||||
_graphicsModes = (OSystem::GraphicsMode *)malloc(sizeof(OSystem::GraphicsMode) * (_glModesCount + _sdlModesCount + 1));
|
_graphicsModes = new OSystem::GraphicsMode[_glModesCount + _sdlModesCount + 1];
|
||||||
|
|
||||||
// Copy SDL graphics modes
|
// Copy SDL graphics modes
|
||||||
memcpy((void *)_graphicsModes, sdlGraphicsModes, _sdlModesCount * sizeof(OSystem::GraphicsMode));
|
memcpy((void *)_graphicsModes, sdlGraphicsModes, _sdlModesCount * sizeof(OSystem::GraphicsMode));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue