mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Remove making new GraphicsResources object in reloadresources()
This is a very complicated way of zeroing out grphx (instead of using SDL_zero()), which itself is completely unnecessary because grphx.init() gets called immediately afterwards anyway.
This commit is contained in:
@@ -3148,7 +3148,6 @@ bool Graphics::onscreen(int t)
|
|||||||
void Graphics::reloadresources()
|
void Graphics::reloadresources()
|
||||||
{
|
{
|
||||||
grphx.destroy();
|
grphx.destroy();
|
||||||
grphx = GraphicsResources();
|
|
||||||
grphx.init();
|
grphx.init();
|
||||||
|
|
||||||
#define CLEAR_ARRAY(name) \
|
#define CLEAR_ARRAY(name) \
|
||||||
|
|||||||
Reference in New Issue
Block a user