Replace internal usage of ImageTexture in VideoStreamPlayer for Texture2D

This commit is contained in:
Álex Román Núñez 2024-01-24 23:35:00 +01:00
parent 4b6ad34988
commit c892582779
2 changed files with 1 additions and 4 deletions

View File

@ -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"

View File

@ -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;