mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 12:18:30 +09:00
[Fix] (Diligent/Texture): Remove useless judgement in glTexSubImage2D.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user