mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Minor corrections in gl3/gles2 drivers
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user