This website works better with JavaScript.
Home
Explore
Help
Sign In
Archivist
/
raylib-src
mirror of
https://github.com/raysan5/raylib
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
24
Wiki
Activity
Browse Source
Update rtextures.c
pull/3029/head
Ray
2 years ago
parent
64f2f86d32
commit
e2996f167e
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
src/rtextures.c
+ 2
- 0
src/rtextures.c
View File
@ -525,6 +525,8 @@ bool ExportImage(Image image, const char *fileName)
{
int
success
=
0
;
if
(
(
image
.
width
=
=
0
)
|
|
(
image
.
height
=
=
0
)
|
|
(
image
.
data
=
=
NULL
)
)
return
success
;
#
if defined(SUPPORT_IMAGE_EXPORT)
int
channels
=
4
;
bool
allocatedData
=
false
;
Write
Preview
Loading…
Cancel
Save