[Chore] (MG_Backend/DirectVulkan): eliminate vague texture binding fallbacks

This commit is contained in:
2026-05-05 18:34:44 +08:00
parent 0a000d1628
commit 8e4a4359b4
6 changed files with 106 additions and 61 deletions
@@ -167,6 +167,7 @@ namespace MobileGL::MG_Impl::GLImpl {
}
void BindSampler_State(GLuint unit, GLuint sampler) {
MGLOG_D("BindSampler_State: unit = %u, sampler = %u", unit, sampler);
if (unit >= MG_State::GLState::TextureState::MAX_TEXTURE_IMAGE_UNITS) {
MG_State::pGLContext->RecordError(
ErrorCode::InvalidValue,