feat(gx): enable additional GLMipmap assertion

This commit is contained in:
fallenoak 2023-02-21 15:02:48 -06:00
parent da1bc52be4
commit b0dbad7557
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -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);