mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-14 06:41:10 +01:00
Fix get_data() for GradientTexture2D
This commit is contained in:
parent
c133ff34d4
commit
73d95ac5e9
@ -2020,7 +2020,7 @@ RID GradientTexture2D::get_rid() const {
|
|||||||
return texture;
|
return texture;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ref<Image> GradientTexture2D::get_image() const {
|
Ref<Image> GradientTexture2D::get_data() const {
|
||||||
if (!texture.is_valid()) {
|
if (!texture.is_valid()) {
|
||||||
return Ref<Image>();
|
return Ref<Image>();
|
||||||
}
|
}
|
||||||
|
@ -714,7 +714,7 @@ public:
|
|||||||
|
|
||||||
virtual RID get_rid() const;
|
virtual RID get_rid() const;
|
||||||
virtual bool has_alpha() const { return true; }
|
virtual bool has_alpha() const { return true; }
|
||||||
virtual Ref<Image> get_image() const;
|
virtual Ref<Image> get_data() const;
|
||||||
|
|
||||||
GradientTexture2D();
|
GradientTexture2D();
|
||||||
virtual ~GradientTexture2D();
|
virtual ~GradientTexture2D();
|
||||||
|
Loading…
Reference in New Issue
Block a user