From c9ee5e1c1feccb073863ba17cbfdcf094f235886 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 22 Oct 2021 07:05:55 +0200 Subject: Add vertex buffer --- src/graphics/Sprite.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/graphics/Sprite.cpp') diff --git a/src/graphics/Sprite.cpp b/src/graphics/Sprite.cpp index 63caa79..baf118e 100644 --- a/src/graphics/Sprite.cpp +++ b/src/graphics/Sprite.cpp @@ -38,8 +38,8 @@ namespace mgl { return { sprite.scale.x, sprite.scale.y }; } - const Texture& Sprite::get_texture() const { - return texture; + const Texture* Sprite::get_texture() const { + return &texture; } void Sprite::draw(Window&) { -- cgit v1.2.3