mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:57:45 +00:00
LibGL: Use Array::back()
for last mipmap selection
This commit is contained in:
parent
bc36e39d07
commit
0d57f08b98
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ void Texture2D::replace_sub_texture_data(GLuint lod, GLint xoffset, GLint yoffse
|
||||||
MipMap const& Texture2D::mipmap(unsigned lod) const
|
MipMap const& Texture2D::mipmap(unsigned lod) const
|
||||||
{
|
{
|
||||||
if (lod >= m_mipmaps.size())
|
if (lod >= m_mipmaps.size())
|
||||||
return m_mipmaps.at(m_mipmaps.size() - 1);
|
return m_mipmaps.back();
|
||||||
|
|
||||||
return m_mipmaps.at(lod);
|
return m_mipmaps.at(lod);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue