mirror of
https://github.com/rwengine/openrw.git
synced 2024-09-18 16:32:32 +02:00
rwengine: some variables are only used in debug builds
Fixes clang warnings about unused private fields: -Wunused-private-field
This commit is contained in:
parent
890deb217b
commit
7bea25e487
@ -273,7 +273,7 @@ private:
|
||||
std::array<AtomicPtr, 3> atomics_;
|
||||
float loddistances_[3] = {};
|
||||
uint8_t numatomics_ = 0;
|
||||
uint8_t alpha_ = 0; /// @todo ask aap why
|
||||
// uint8_t alpha_ = 0; /// @todo ask aap why
|
||||
bool isbigbuilding_ = 0;
|
||||
uint8_t furthest_ = 0;
|
||||
|
||||
|
@ -403,7 +403,7 @@ private:
|
||||
template <class T>
|
||||
void uploadUBO(Buffer& buffer, const T& data) {
|
||||
uploadUBOEntry(buffer, &data, sizeof(T));
|
||||
#ifdef RW_PROFILER
|
||||
#ifdef RW_GRAPHICS_STATS
|
||||
if (currentDebugDepth > 0) {
|
||||
profileInfo[currentDebugDepth - 1].uploads++;
|
||||
}
|
||||
@ -425,7 +425,9 @@ private:
|
||||
// Debug group profiling timers
|
||||
ProfileInfo profileInfo[MAX_DEBUG_DEPTH];
|
||||
GLuint debugQuery;
|
||||
#ifdef RW_GRAPHICS_STATS
|
||||
int currentDebugDepth = 0;
|
||||
#endif
|
||||
};
|
||||
|
||||
/// @todo remove these from here
|
||||
|
Loading…
Reference in New Issue
Block a user