Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2544,7 +2544,7 @@ void W3DDisplay::drawImage( const Image *image, Int startX, Int startY,
}

// if we have raw texture data we will use it, otherwise we are referencing filenames
if( BitIsSet( image->getStatus(), IMAGE_STATUS_RAW_TEXTURE ) )
if( BitIsSet( image->getStatus(), IMAGE_STATUS_RAW_TEXTURE ) && image->getRawTextureData() != nullptr )
m_2DRender->Set_Texture( (TextureClass *)(image->getRawTextureData()) );
else
m_2DRender->Set_Texture( image->getFilename().str() );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2642,7 +2642,7 @@ void W3DDisplay::drawImage(const Image* image, Int startX, Int startY,
}

// if we have raw texture data we will use it, otherwise we are referencing filenames
if (BitIsSet(image->getStatus(), IMAGE_STATUS_RAW_TEXTURE))
if (BitIsSet(image->getStatus(), IMAGE_STATUS_RAW_TEXTURE) && image->getRawTextureData() != nullptr)
m_2DRender->Set_Texture((TextureClass*)(image->getRawTextureData()));
else
m_2DRender->Set_Texture(image->getFilename().str());
Expand Down
Loading