mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Minor corrections in gl3/gles2 drivers
This commit is contained in:
parent
cc8c3d501c
commit
8d2e770361
5 changed files with 31 additions and 24 deletions
|
@ -936,9 +936,10 @@ void CNullDriver::setTextureCreationFlag(E_TEXTURE_CREATION_FLAG flag, bool enab
|
|||
setTextureCreationFlag(ETCF_OPTIMIZED_FOR_SPEED, false);
|
||||
}
|
||||
|
||||
// set flag
|
||||
TextureCreationFlags = (TextureCreationFlags & (~flag)) |
|
||||
((((u32)!enabled) - 1) & flag);
|
||||
if (enabled)
|
||||
TextureCreationFlags |= flag;
|
||||
else
|
||||
TextureCreationFlags &= ~flag;
|
||||
}
|
||||
|
||||
//! Returns if a texture creation flag is enabled or disabled.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue