[Feat] (MG_Impl/Texture): implement glTexImage3D in the frontend

This commit is contained in:
2026-01-04 16:39:14 +08:00
parent 7819a8e405
commit c537f9814c
5 changed files with 137 additions and 26 deletions
@@ -134,8 +134,8 @@ namespace MobileGL::MG_Impl::GLImpl {
return true;
}
Bool ValidateTextureSizeRange(SizeT width, SizeT height) {
if (width < 0 || height < 0) {
Bool ValidateTextureSizeRange(SizeT width, SizeT height, SizeT depth) {
if (width < 0 || height < 0 || depth < 0) {
MG_State::pGLContext->RecordError(
ErrorCode::InvalidValue,
MakeShared<GenericErrorInfo>("MG_Impl/GLImpl", "ValidateTextureSizeRange",