mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 17:54:20 +02:00
try another way of fixing _spare warning
This commit is contained in:
parent
b69d0f3997
commit
cb04894e33
1 changed files with 4 additions and 3 deletions
|
@ -118,11 +118,12 @@ public:
|
|||
uint8 _function = LESS;
|
||||
uint8 _writeMask = true;
|
||||
uint8 _enabled = false;
|
||||
__attribute__((unused)) // _spare is here to to affect alignment
|
||||
uint8 _spare = 0;
|
||||
uint8 _spare = 0; // _spare is here to to affect alignment
|
||||
public:
|
||||
DepthTest(bool enabled = false, bool writeMask = true, ComparisonFunction func = LESS) :
|
||||
_function(func), _writeMask(writeMask), _enabled(enabled) {}
|
||||
_function(func), _writeMask(writeMask), _enabled(enabled) {
|
||||
(void)_spare; // to avoid unusued variable warning
|
||||
}
|
||||
|
||||
bool isEnabled() const { return _enabled != 0; }
|
||||
ComparisonFunction getFunction() const { return ComparisonFunction(_function); }
|
||||
|
|
Loading…
Reference in a new issue