diff --git a/GLMakie/src/GLAbstraction/GLTexture.jl b/GLMakie/src/GLAbstraction/GLTexture.jl index 472a611071b..ae3f596bfac 100644 --- a/GLMakie/src/GLAbstraction/GLTexture.jl +++ b/GLMakie/src/GLAbstraction/GLTexture.jl @@ -137,6 +137,9 @@ Colors from Colors.jl should mostly work as well Texture(image::Array{T, NDim}; kw_args...) where {T <: GLArrayEltypes, NDim} = Texture(pointer(image), size(image); kw_args...)::Texture{T, NDim} +Texture(image::AbstractArray{T, NDim}; kw_args...) where {T <: GLArrayEltypes, NDim} = + Texture(collect(image); kw_args...) + function Texture(s::ShaderAbstractions.Sampler{T, N}; kwargs...) where {T, N} tex = Texture( pointer(s.data), size(s.data),