Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ template<>
void OvRendering::HAL::GLRenderbuffer::Resize(uint16_t p_width, uint16_t p_height)
{
OVASSERT(IsValid(), "Cannot resize a renderbuffer that has not been allocated");

if (m_context.width == p_width && m_context.height == p_height)
{
return;
}

Allocate(p_width, p_height, m_context.format);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ void OvRendering::HAL::GLTexture::Resize(uint32_t p_width, uint32_t p_height)

auto& desc = m_textureContext.desc;

if (p_width != desc.width || p_height != desc.width)
if (p_width != desc.width || p_height != desc.height)
{
desc.width = p_width;
desc.height = p_height;
Expand Down