diff --git a/Hazel/src/Platform/OpenGL/OpenGLTexture.h b/Hazel/src/Platform/OpenGL/OpenGLTexture.h index cda7e21..c82d5a0 100644 --- a/Hazel/src/Platform/OpenGL/OpenGLTexture.h +++ b/Hazel/src/Platform/OpenGL/OpenGLTexture.h @@ -18,6 +18,7 @@ namespace Hazel virtual const uint32_t GetWidth() const override {return m_Width; } virtual const uint32_t GetHeight() const override { return m_Height; } + virtual const std::string& GetPath() const override {return m_Path; } virtual void Bind(uint32_t slot = 0) const override; @@ -27,7 +28,7 @@ namespace Hazel virtual bool operator==(const Texture& other) const override { - return m_RendererID == ((OpenGLTexture2D&)other).m_RendererID; + return m_RendererID == other.GetRendererID(); } private: std::string m_Path;