summaryrefslogtreecommitdiffstats
path: root/src/video_core/regs_texturing.h
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2017-05-05 14:29:35 +0200
committerwwylele <wwylele@gmail.com>2017-05-05 14:35:17 +0200
commit039b2930928c34c011fcc236d7f8c32599077ad0 (patch)
treefe23bee60f856aa18b5ddda1d4094a452489babc /src/video_core/regs_texturing.h
parentpica: use correct coordinates for texture 2 (diff)
downloadyuzu-039b2930928c34c011fcc236d7f8c32599077ad0.tar
yuzu-039b2930928c34c011fcc236d7f8c32599077ad0.tar.gz
yuzu-039b2930928c34c011fcc236d7f8c32599077ad0.tar.bz2
yuzu-039b2930928c34c011fcc236d7f8c32599077ad0.tar.lz
yuzu-039b2930928c34c011fcc236d7f8c32599077ad0.tar.xz
yuzu-039b2930928c34c011fcc236d7f8c32599077ad0.tar.zst
yuzu-039b2930928c34c011fcc236d7f8c32599077ad0.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/regs_texturing.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/regs_texturing.h b/src/video_core/regs_texturing.h
index 515848bd6..8a7c6efe4 100644
--- a/src/video_core/regs_texturing.h
+++ b/src/video_core/regs_texturing.h
@@ -126,7 +126,7 @@ struct TexturingRegs {
BitField<10, 1, u32> texture3_enable; // TODO: unimplemented
BitField<13, 1, u32> texture2_use_coord1;
BitField<16, 1, u32> clear_texture_cache; // TODO: unimplemented
- };
+ } main_config;
TextureConfig texture0;
INSERT_PADDING_WORDS(0x8);
BitField<0, 4, TextureFormat> texture0_format;
@@ -146,9 +146,9 @@ struct TexturingRegs {
};
const std::array<FullTextureConfig, 3> GetTextures() const {
return {{
- {texture0_enable.ToBool(), texture0, texture0_format},
- {texture1_enable.ToBool(), texture1, texture1_format},
- {texture2_enable.ToBool(), texture2, texture2_format},
+ {main_config.texture0_enable.ToBool(), texture0, texture0_format},
+ {main_config.texture1_enable.ToBool(), texture1, texture1_format},
+ {main_config.texture2_enable.ToBool(), texture2, texture2_format},
}};
}