mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 06:02:28 +02:00
Adressing build warnings
This commit is contained in:
parent
129e2ce188
commit
5aa45b64d2
3 changed files with 5 additions and 4 deletions
|
@ -269,7 +269,7 @@ void GLBackend::updateInput() {
|
|||
auto stride = _input._bufferStrides.data();
|
||||
|
||||
// Profile the count of buffers to update and use it to short cut the for loop
|
||||
int numInvalids = _input._invalidBuffers.count();
|
||||
int numInvalids = (int) _input._invalidBuffers.count();
|
||||
_stats._ISNumInputBufferChanges += numInvalids;
|
||||
PROFILE_COUNTER_IF_CHANGED(render_gpu, "numInputBuffersbound", int, numInvalids);
|
||||
|
||||
|
|
|
@ -78,10 +78,11 @@ void GL41Backend::updateInput() {
|
|||
|
||||
const Stream::Format::AttributeMap& attributes = _input._format->getAttributes();
|
||||
auto& inputChannels = _input._format->getChannels();
|
||||
_stats._ISNumInputBufferChanges += _input._invalidBuffers.count();
|
||||
int numInvalids = (int)_input._invalidBuffers.count();
|
||||
_stats._ISNumInputBufferChanges += numInvalids;
|
||||
|
||||
// Profile the count of buffers to update
|
||||
PROFILE_COUNTER_IF_CHANGED(render_gpu, "numInputBuffersbound", int, _input._invalidBuffers.count());
|
||||
PROFILE_COUNTER_IF_CHANGED(render_gpu, "numInputBuffersbound", int, numInvalids);
|
||||
|
||||
GLuint boundVBO = 0;
|
||||
for (auto& channelIt : inputChannels) {
|
||||
|
|
|
@ -134,7 +134,7 @@ void GL45Backend::updateInput() {
|
|||
auto stride = _input._bufferStrides.data();
|
||||
|
||||
// Profile the count of buffers to update and use it to short cut the for loop
|
||||
int numInvalids = _input._invalidBuffers.count();
|
||||
int numInvalids = (int) _input._invalidBuffers.count();
|
||||
_stats._ISNumInputBufferChanges += numInvalids;
|
||||
PROFILE_COUNTER_IF_CHANGED(render_gpu, "numInputBuffersbound", int, numInvalids);
|
||||
|
||||
|
|
Loading…
Reference in a new issue