[Fix] (Diligent/Texture): Remove useless judgement in glTexSubImage2D.

This commit is contained in:
BZLZHH
2025-06-08 23:23:23 +08:00
parent 1022a4dfc3
commit b73c6e749e
@@ -455,13 +455,6 @@ namespace MG_GL::GL {
}
Diligent::TextureDesc desc = pTexture->GetDesc();
if (xoffset < 0 || yoffset < 0 ||
(xoffset + width) > desc.Width ||
(yoffset + height) > desc.Height) {
MG_Util::Debug::LogE("TexSubImage2D: Update region out of bounds: [%d, %d, %d, %d] vs texture size [%u, %u]",
xoffset, yoffset, width, height, desc.Width, desc.Height);
return;
}
Diligent::TextureSubResData SubResData;
SubResData.pData = pixels;