|
@@ -624,7 +624,11 @@ class Image extends Resource {
|
|
if( DEFAULT_FILTER != Linear ) tex.filter = DEFAULT_FILTER;
|
|
if( DEFAULT_FILTER != Linear ) tex.filter = DEFAULT_FILTER;
|
|
tex.setName(entry.path);
|
|
tex.setName(entry.path);
|
|
setupTextureFlags(tex);
|
|
setupTextureFlags(tex);
|
|
- tex.realloc = () -> loadTexture();
|
|
|
|
|
|
+ // DirectX12 texture array triggers an access violation.
|
|
|
|
+ if ( tex.flags.has(IsArray) )
|
|
|
|
+ loadTexture();
|
|
|
|
+ else
|
|
|
|
+ tex.realloc = () -> loadTexture();
|
|
return tex;
|
|
return tex;
|
|
}
|
|
}
|
|
|
|
|