aboutsummaryrefslogtreecommitdiff
path: root/src/graphics/Sprite.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-22 07:05:55 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-22 07:05:55 +0200
commitc9ee5e1c1feccb073863ba17cbfdcf094f235886 (patch)
treef6b9f3fdc21cecbaca1fd58425c0f93c3372a9d4 /src/graphics/Sprite.cpp
parentfe1588ef18163c7557d3d0a62c085f42f2abfab2 (diff)
Add vertex buffer
Diffstat (limited to 'src/graphics/Sprite.cpp')
-rw-r--r--src/graphics/Sprite.cpp4
1 files changed, 2 insertions, 2 deletions
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&) {