diff options
author | Subv <subv2112@gmail.com> | 2018-06-20 18:39:10 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-06-20 18:39:10 +0200 |
commit | a3d82ef5d90b02a256087edf9c0124b51b059c18 (patch) | |
tree | 859f41acecbdcfcbdf19df80903a045d6e2b0bcb /src/video_core/engines/maxwell_3d.cpp | |
parent | Implement GetAvailableLanguageCodes2 (#575) (diff) | |
download | yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.gz yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.bz2 yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.lz yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.xz yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.zst yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.zip |
Diffstat (limited to 'src/video_core/engines/maxwell_3d.cpp')
-rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 86e9dc998..93c43c8cb 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -328,8 +328,9 @@ std::vector<Texture::FullTextureInfo> Maxwell3D::GetStageTextures(Regs::ShaderSt Texture::FullTextureInfo tex_info{}; // TODO(Subv): Use the shader to determine which textures are actually accessed. - tex_info.index = (current_texture - tex_info_buffer.address - TextureInfoOffset) / - sizeof(Texture::TextureHandle); + tex_info.index = + static_cast<u32>(current_texture - tex_info_buffer.address - TextureInfoOffset) / + sizeof(Texture::TextureHandle); // Load the TIC data. if (tex_handle.tic_id != 0) { |