[Fix] (MG_State/TextureState): Fix incorrect behavior.

This commit is contained in:
BZLZHH
2025-08-12 18:11:36 +08:00
parent a78c53ecdd
commit 4eba014513
7 changed files with 14 additions and 8 deletions
@@ -13,6 +13,7 @@ namespace MobileGL {
BindingSlot<ITextureObject>& GetBindingSlot(TextureTarget target);
SharedPtr<SamplerObject> GetSamplerObject() const;
Array<BindingSlot<ITextureObject>, (int)TextureTarget::TextureTargetCount>& GetAllBindingSlots();
void SetSamplerObject(SharedPtr<SamplerObject> sampler);
private:
Array<BindingSlot<ITextureObject>, (int)TextureTarget::TextureTargetCount> m_slots;