mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(gx): handle changes to texture wrap settings
This commit is contained in:
parent
2282b8a54a
commit
45c1978a85
3 changed files with 16 additions and 5 deletions
|
|
@ -516,8 +516,9 @@ void CM2SceneRender::SetupTextures() {
|
|||
if (texture) {
|
||||
uint16_t textureFlags = this->m_data->textures[textureIndex].flags;
|
||||
|
||||
EGxTexWrapMode wrapU = static_cast<EGxTexWrapMode>(textureFlags & 0x1);
|
||||
EGxTexWrapMode wrapV = static_cast<EGxTexWrapMode>(textureFlags & 0x2);
|
||||
EGxTexWrapMode wrapU = textureFlags & 0x1 ? GxTex_Wrap : GxTex_Clamp;
|
||||
EGxTexWrapMode wrapV = textureFlags & 0x2 ? GxTex_Wrap : GxTex_Clamp;
|
||||
|
||||
GxTexSetWrap(texture, wrapU, wrapV);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue