From c8925827790b28a9a3a5013ce094514db17b96b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Rom=C3=A1n=20N=C3=BA=C3=B1ez?= Date: Wed, 24 Jan 2024 23:35:00 +0100 Subject: [PATCH] Replace internal usage of ImageTexture in VideoStreamPlayer for Texture2D --- scene/gui/video_stream_player.cpp | 1 - scene/gui/video_stream_player.h | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/scene/gui/video_stream_player.cpp b/scene/gui/video_stream_player.cpp index 41a210e180f..687a9e46a0f 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 0b83608f0bd..c173c8bfa38 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 texture; + Ref texture; AudioRBResampler resampler; Vector mix_buffer;