diff options
| author | Ray <[email protected]> | 2024-02-26 10:49:04 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2024-02-26 10:49:04 +0100 |
| commit | 7d6e59170b0ad061f4734281da378d80b3135291 (patch) | |
| tree | 20aa84fa9e7f06cb36b2bda75a1c5f44ea4335e3 /src | |
| parent | 3086bf1668249803cd847d158901087a708bcb7a (diff) | |
| download | raylib-7d6e59170b0ad061f4734281da378d80b3135291.tar.gz raylib-7d6e59170b0ad061f4734281da378d80b3135291.zip | |
Update rtextures.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/rtextures.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/rtextures.c b/src/rtextures.c index efa91df9..52e6dd2d 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -3874,15 +3874,13 @@ TextureCubemap LoadTextureCubemap(Image image, int layout) // NOTE: Cubemap data is expected to be provided as 6 images in a single data array, // one after the other (that's a vertical image), following convention: +X, -X, +Y, -Y, +Z, -Z cubemap.id = rlLoadTextureCubemap(faces.data, size, faces.format); - if (cubemap.id == 0) - { - TRACELOG(LOG_WARNING, "IMAGE: Failed to load cubemap image"); - } - else + + if (cubemap.id != 0) { cubemap.format = faces.format; cubemap.mipmaps = 1; } + else TRACELOG(LOG_WARNING, "IMAGE: Failed to load cubemap image"); UnloadImage(faces); } |
