summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorÁlex Román Núñez <eirexe123@gmail.com>2024-01-24 23:35:00 +0100
committerÁlex Román Núñez <eirexe123@gmail.com>2024-01-24 23:44:46 +0100
commitc8925827790b28a9a3a5013ce094514db17b96b7 (patch)
treed4663fa2a3ff74c7cf12f1ef990a53312d9ab201
parent4b6ad349886288405890b07d4a8da425eb3c97ec (diff)
downloadredot-engine-c8925827790b28a9a3a5013ce094514db17b96b7.tar.gz
Replace internal usage of ImageTexture in VideoStreamPlayer for Texture2D
-rw-r--r--scene/gui/video_stream_player.cpp1
-rw-r--r--scene/gui/video_stream_player.h4
2 files changed, 1 insertions, 4 deletions
diff --git a/scene/gui/video_stream_player.cpp b/scene/gui/video_stream_player.cpp
index 41a210e180..687a9e46a0 100644
--- a/scene/gui/video_stream_player.cpp
+++ b/scene/gui/video_stream_player.cpp
@@ -31,7 +31,6 @@
#include "video_stream_player.h"
#include "core/os/os.h"
-#include "scene/resources/image_texture.h"
#include "scene/scene_string_names.h"
#include "servers/audio_server.h"
diff --git a/scene/gui/video_stream_player.h b/scene/gui/video_stream_player.h
index 0b83608f0b..c173c8bfa3 100644
--- a/scene/gui/video_stream_player.h
+++ b/scene/gui/video_stream_player.h
@@ -36,8 +36,6 @@
#include "servers/audio/audio_rb_resampler.h"
#include "servers/audio_server.h"
-class ImageTexture;
-
class VideoStreamPlayer : public Control {
GDCLASS(VideoStreamPlayer, Control);
@@ -54,7 +52,7 @@ class VideoStreamPlayer : public Control {
RID stream_rid;
- Ref<ImageTexture> texture;
+ Ref<Texture2D> texture;
AudioRBResampler resampler;
Vector<AudioFrame> mix_buffer;