mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 22:28:32 +09:00
[Chore] (MG_Backend/DirectVulkan): eliminate vague texture binding fallbacks
This commit is contained in:
@@ -541,6 +541,9 @@ namespace MobileGL::MG_Impl::GLImpl {
|
||||
} else {
|
||||
auto* ttype = programObject.GetUniformTType(location);
|
||||
if (ttype->isTexture() || ttype->isImage()) {
|
||||
MGLOG_D("%s: program = %d, opaque uniform location = %d, name = '%s', unit = %d", __func__,
|
||||
programObject.GetExternalIndex(), location, programObject.GetUniformName(location).c_str(),
|
||||
static_cast<Int>(*value));
|
||||
programObject.SetUniformSamplerOrImageUnitIndex(location, *value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user