Set cubemap format in LoadTextureCubemap
This commit is contained in:
parent
dc7f81a7b0
commit
077357b42e
|
|
@ -3823,6 +3823,7 @@ TextureCubemap LoadTextureCubemap(Image image, int layout)
|
||||||
}
|
}
|
||||||
|
|
||||||
cubemap.height = cubemap.width;
|
cubemap.height = cubemap.width;
|
||||||
|
cubemap.format = image.format;
|
||||||
|
|
||||||
// Layout provided or already auto-detected
|
// Layout provided or already auto-detected
|
||||||
if (layout != CUBEMAP_LAYOUT_AUTO_DETECT)
|
if (layout != CUBEMAP_LAYOUT_AUTO_DETECT)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user