mirror of
https://github.com/godotengine/godot
synced 2024-09-05 04:38:26 +00:00
Replace internal usage of ImageTexture in VideoStreamPlayer for Texture2D
This commit is contained in:
parent
4b6ad34988
commit
c892582779
|
@ -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"
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue