1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

LibGL: Use Array::back() for last mipmap selection

This commit is contained in:
Jelle Raaijmakers 2021-11-28 01:58:47 +01:00 committed by Andreas Kling
parent bc36e39d07
commit 0d57f08b98

View file

@ -116,7 +116,7 @@ void Texture2D::replace_sub_texture_data(GLuint lod, GLint xoffset, GLint yoffse
MipMap const& Texture2D::mipmap(unsigned lod) const
{
if (lod >= m_mipmaps.size())
return m_mipmaps.at(m_mipmaps.size() - 1);
return m_mipmaps.back();
return m_mipmaps.at(lod);
}