mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +02:00
PR comments
This commit is contained in:
parent
ef466a64bf
commit
33ec73bfd8
2 changed files with 4 additions and 2 deletions
|
@ -160,7 +160,9 @@ GLBackend::GLTexture::~GLTexture() {
|
|||
if (_transferrable) {
|
||||
uint16 mipCount = usedMipLevels();
|
||||
Q_ASSERT(_textureCountByMips.count(mipCount));
|
||||
if (0 == --_textureCountByMips[mipCount]) {
|
||||
auto& numTexturesForMipCount = _textureCountByMips[mipCount];
|
||||
--numTexturesForMipCount;
|
||||
if (0 == numTexturesForMipCount) {
|
||||
_textureCountByMips.erase(mipCount);
|
||||
if (mipCount == _currentMaxMipCount) {
|
||||
_currentMaxMipCount = _textureCountByMips.rbegin()->first;
|
||||
|
|
|
@ -236,5 +236,5 @@ void VrMenu::removeAction(QAction* action) {
|
|||
QQuickMenuBase* qmlItem = reinterpret_cast<QQuickMenuBase*>(item);
|
||||
bool invokeResult = QMetaObject::invokeMethod(menu, "removeItem", Qt::DirectConnection,
|
||||
Q_ARG(QQuickMenuBase*, qmlItem));
|
||||
//Q_ASSERT(invokeResult);
|
||||
Q_ASSERT(invokeResult);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue