mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-18 02:11:28 +00:00
rsx: Fix texture height read
This commit is contained in:
parent
62f97f2e5f
commit
348db050ae
@ -1771,7 +1771,6 @@ namespace rsx
|
||||
switch (extended_dimension)
|
||||
{
|
||||
case rsx::texture_dimension_extended::texture_dimension_1d:
|
||||
tex_height = 1;
|
||||
depth = 1;
|
||||
break;
|
||||
case rsx::texture_dimension_extended::texture_dimension_2d:
|
||||
|
@ -258,7 +258,7 @@ namespace rsx
|
||||
|
||||
u16 fragment_texture::height() const
|
||||
{
|
||||
return ((registers[NV4097_SET_TEXTURE_IMAGE_RECT + (m_index * 8)]) & 0xffff);
|
||||
return dimension() != rsx::texture_dimension::dimension1d ? ((registers[NV4097_SET_TEXTURE_IMAGE_RECT + (m_index * 8)]) & 0xffff) : 1;
|
||||
}
|
||||
|
||||
u32 fragment_texture::border_color() const
|
||||
@ -396,7 +396,7 @@ namespace rsx
|
||||
|
||||
u16 vertex_texture::height() const
|
||||
{
|
||||
return ((registers[NV4097_SET_VERTEX_TEXTURE_IMAGE_RECT + (m_index * 8)]) & 0xffff);
|
||||
return dimension() != rsx::texture_dimension::dimension1d ? ((registers[NV4097_SET_VERTEX_TEXTURE_IMAGE_RECT + (m_index * 8)]) & 0xffff) : 1;
|
||||
}
|
||||
|
||||
u32 vertex_texture::border_color() const
|
||||
|
Loading…
Reference in New Issue
Block a user