mirror of
https://github.com/minetest/minetest.git
synced 2025-03-27 20:52:39 +01:00
Don't keep a copy of all texture images around
This commit is contained in:
irr
@ -74,7 +74,7 @@ enum E_TEXTURE_CREATION_FLAG
|
|||||||
|
|
||||||
//! Allow the driver to keep a copy of the texture in memory
|
//! 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.
|
/** 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,
|
ETCF_ALLOW_MEMORY_COPY = 0x00000080,
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ CNullDriver::CNullDriver(io::IFileSystem *io, const core::dimension2d<u32> &scre
|
|||||||
setTextureCreationFlag(ETCF_ALWAYS_32_BIT, true);
|
setTextureCreationFlag(ETCF_ALWAYS_32_BIT, true);
|
||||||
setTextureCreationFlag(ETCF_CREATE_MIP_MAPS, true);
|
setTextureCreationFlag(ETCF_CREATE_MIP_MAPS, true);
|
||||||
setTextureCreationFlag(ETCF_AUTO_GENERATE_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<s32>(core::position2d<s32>(0, 0), core::dimension2di(screenSize));
|
ViewPort = core::rect<s32>(core::position2d<s32>(0, 0), core::dimension2di(screenSize));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user