From b0dbad75572f8bd44aa0dc06cff70f8bfa02927c Mon Sep 17 00:00:00 2001 From: fallenoak Date: Tue, 21 Feb 2023 15:02:48 -0600 Subject: [PATCH] feat(gx): enable additional GLMipmap assertion --- src/gx/gll/GLMipmap.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gx/gll/GLMipmap.cpp b/src/gx/gll/GLMipmap.cpp index a87ba94..bfeaa82 100644 --- a/src/gx/gll/GLMipmap.cpp +++ b/src/gx/gll/GLMipmap.cpp @@ -374,8 +374,7 @@ void GLMipmap::TexImage(const void* pixels) { } void GLMipmap::TexSubImage(const GLBox& a2, int32_t size, const void* pixels) { - // TODO - // BLIZZARD_ASSERT(!this->m_Texture->IsRenderTarget() && pixels != 0 && GLDevice::Get()->GetVertexArrayStates().buffers[eGLBT_PIXEL_UNPACK] == 0); + BLIZZARD_ASSERT(!this->m_Texture->IsRenderTarget() && pixels != nullptr && GLDevice::Get()->GetVertexArrayStates().buffers[eGLBT_PIXEL_UNPACK] == 0); if (this->m_Target == GL_TEXTURE_3D) { glPixelStorei(GL_UNPACK_ROW_LENGTH, this->m_Width);