Merge branch 'master' of github.com:highfidelity/hifi into tablet-ui

This commit is contained in:
Seth Alves 2017-01-27 13:06:22 -08:00
commit 1a511272b0
2 changed files with 4 additions and 1 deletions

View file

@ -468,7 +468,9 @@ std::chrono::microseconds AudioMixer::timeFrame(p_high_resolution_clock::time_po
timestamp = std::max(now, nextTimestamp);
// sleep until the next frame should start
std::this_thread::sleep_until(timestamp);
// WIN32 sleep_until is broken until VS2015 Update 2
// instead, std::max (above) guarantees that timestamp >= now, so we can sleep_for
std::this_thread::sleep_for(timestamp - now);
return duration;
}

View file

@ -92,6 +92,7 @@ void SparseInfo::maybeMakeSparse() {
if (!texture._gpuObject.isAutogenerateMips()) {
return;
}
return;
const uvec3 dimensions = texture._gpuObject.getDimensions();
auto allowedPageDimensions = getPageDimensionsForFormat(texture._target, texture._internalFormat);