You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Merge pull request #87555 from EIREXE/video_player_unfunny
Replace internal usage of ImageTexture in VideoStreamPlayer for Texture2D
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user