[Fix] (MG_State/FramebufferState): Fix missing functions.

This commit is contained in:
BZLZHH
2025-10-02 21:44:11 +08:00
parent d6b54f8e30
commit 3ba1842758
2 changed files with 8 additions and 2 deletions
@@ -61,6 +61,7 @@ namespace MobileGL {
explicit FramebufferAttachment(SharedPtr<MG_State::GLState::ITextureObject> texture, Int level = 0);
explicit FramebufferAttachment(SharedPtr<RenderbufferObjectStub> renderbuffer);
explicit FramebufferAttachment(std::nullptr_t);
explicit FramebufferAttachment();
Bool IsTexture() const;
Bool IsRenderbuffer() const;
@@ -72,8 +73,8 @@ namespace MobileGL {
IntVec3 GetSize() const;
private:
SharedPtr<MG_State::GLState::ITextureObject> m_texture;
SharedPtr<RenderbufferObjectStub> m_renderbuffer;
SharedPtr<MG_State::GLState::ITextureObject> m_texture = nullptr;
SharedPtr<RenderbufferObjectStub> m_renderbuffer = nullptr;
Int m_textureLevel = 0;
};