Skip to content
Open
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
3 changes: 3 additions & 0 deletions source/Platforms/Marm/CzPlatformImaging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ CzTexture CzPlatformImaging::CreateTexture(void* memory_file, int memory_file_si
image->ReadFile((s3eFile*)file.getFileHandle());

CIwTexture* texture = new CIwTexture();
texture->_SetFlags( CIwTexture::NO_CHROMA_KEY_F );
texture->CopyFromImage(image);

delete image;
Expand All @@ -118,6 +119,7 @@ CzTexture CzPlatformImaging::CreateTexture(void* pixels, int width, int height,
return NULL;

CIwTexture* texture = new CIwTexture();
texture->_SetFlags( CIwTexture::NO_CHROMA_KEY_F );
texture->SetMipMapping(false);
texture->SetModifiable(modifiable);
texture->CopyFromBuffer(width, height, f, pitch, (uint8*)pixels, NULL);
Expand Down Expand Up @@ -149,6 +151,7 @@ CzTexture CzPlatformImaging::CreateTexture(CzTexture source, CzImage::eFormat fo
t->GetImage().ConvertToImage(image);

CIwTexture* texture = new CIwTexture();
texture->_SetFlags( CIwTexture::NO_CHROMA_KEY_F );
texture->SetMipMapping(t->GetMipMapping());
texture->SetFiltering(t->GetFiltering());
texture->SetModifiable(t->GetModifiable());
Expand Down