mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Fix alpha rendering bug
This commit is contained in:
parent
3928e11611
commit
6fb074715e
2 changed files with 3 additions and 2 deletions
|
@ -11,12 +11,13 @@
|
|||
|
||||
|
||||
#include "Texture.h"
|
||||
#include <qdebug.h>
|
||||
|
||||
#include <QtCore/QByteArray>
|
||||
|
||||
#include <ktx/KTX.h>
|
||||
|
||||
#include "GPULogging.h"
|
||||
|
||||
using namespace gpu;
|
||||
|
||||
using PixelsPointer = Texture::PixelsPointer;
|
||||
|
|
|
@ -544,7 +544,7 @@ void ModelMeshPartPayload::render(RenderArgs* args) const {
|
|||
}
|
||||
|
||||
if (_fadeState == FADE_WAITING_TO_START) {
|
||||
if (_model->isLoaded()) {
|
||||
if (_model->isLoaded() && _model->getGeometry()->areTexturesLoaded()) {
|
||||
if (EntityItem::getEntitiesShouldFadeFunction()()) {
|
||||
_fadeStartTime = usecTimestampNow();
|
||||
_fadeState = FADE_IN_PROGRESS;
|
||||
|
|
Loading…
Reference in a new issue