Skip to content

Commit

Permalink
Replace internal usage of ImageTexture in VideoStreamPlayer for Textu…
Browse files Browse the repository at this point in the history
…re2D
  • Loading branch information
EIREXE committed Jan 24, 2024
1 parent 4b6ad34 commit c892582
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion scene/gui/video_stream_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 1 addition & 3 deletions scene/gui/video_stream_player.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -54,7 +52,7 @@ class VideoStreamPlayer : public Control {

RID stream_rid;

Ref<ImageTexture> texture;
Ref<Texture2D> texture;

AudioRBResampler resampler;
Vector<AudioFrame> mix_buffer;
Expand Down

0 comments on commit c892582

Please sign in to comment.