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
Delete shader in case compilation fails
pull/5005/head
Ray
5 months ago
parent
1abac023bd
commit
b677376088
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
src/rlgl.h
+ 3
- 0
src/rlgl.h
View File
@ -4178,6 +4178,9 @@ unsigned int rlCompileShader(const char *shaderCode, int type)
RL_FREE
(
log
)
;
}
/
/
Unload
object
allocated
by
glCreateShader
(
)
,
/
/
despite
failing
in
the
compilation
process
glDeleteShader
(
shader
)
;
shader
=
0
;
}
else
Write
Preview
Loading…
Cancel
Save