1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 06:52:34 +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:
Anonymous Maarten 2018-08-30 15:43:48 +02:00
parent 890deb217b
commit 7bea25e487
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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