소스 검색

~ fixed texture resolution variable not being correct (prevented texture scaling on things like masks)

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
Alexis Maiquez 5 년 전
부모
커밋
5c56d68a69
1개의 변경된 파일과 2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/WallpaperEngine/Assets/CTexture.cpp

+ 2 - 2
src/WallpaperEngine/Assets/CTexture.cpp

@@ -50,8 +50,8 @@ CTexture::CTexture (void* fileData)
     // set the texture resolution
     // TODO: SUPPORT SPRITES
     this->m_resolution = {
-        this->m_header->width, this->m_header->height,
-        this->m_header->textureWidth, this->m_header->textureHeight
+        this->m_header->textureWidth, this->m_header->textureHeight,
+        this->m_header->width, this->m_header->height
     };
 
     // reserve a texture