From cc8c3d501c6cacf86501900b74e2a666d8d33ab0 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Fri, 8 Nov 2024 13:20:02 +0100 Subject: [PATCH] Don't keep a copy of all texture images around --- irr/include/ITexture.h | 2 +- irr/src/CNullDriver.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/irr/include/ITexture.h b/irr/include/ITexture.h index 6cbf64bd3..8760c9f2a 100644 --- a/irr/include/ITexture.h +++ b/irr/include/ITexture.h @@ -74,7 +74,7 @@ enum E_TEXTURE_CREATION_FLAG //! Allow the driver to keep a copy of the texture in memory /** Enabling this makes calls to ITexture::lock a lot faster, but costs main memory. - This is enabled by default. + This is disabled by default. */ ETCF_ALLOW_MEMORY_COPY = 0x00000080, diff --git a/irr/src/CNullDriver.cpp b/irr/src/CNullDriver.cpp index f17f6f454..46a2d9f7b 100644 --- a/irr/src/CNullDriver.cpp +++ b/irr/src/CNullDriver.cpp @@ -76,7 +76,7 @@ CNullDriver::CNullDriver(io::IFileSystem *io, const core::dimension2d &scre setTextureCreationFlag(ETCF_ALWAYS_32_BIT, true); setTextureCreationFlag(ETCF_CREATE_MIP_MAPS, true); setTextureCreationFlag(ETCF_AUTO_GENERATE_MIP_MAPS, true); - setTextureCreationFlag(ETCF_ALLOW_MEMORY_COPY, true); + setTextureCreationFlag(ETCF_ALLOW_MEMORY_COPY, false); ViewPort = core::rect(core::position2d(0, 0), core::dimension2di(screenSize));