mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-21 18:58:14 +00:00
[rlgl] LoadText() variable scope improvement
This commit is contained in:
@@ -3001,12 +3001,11 @@ Shader GetShaderDefault(void)
|
|||||||
// NOTE: text chars array should be freed manually
|
// NOTE: text chars array should be freed manually
|
||||||
char *LoadText(const char *fileName)
|
char *LoadText(const char *fileName)
|
||||||
{
|
{
|
||||||
FILE *textFile = NULL;
|
|
||||||
char *text = NULL;
|
char *text = NULL;
|
||||||
|
|
||||||
if (fileName != NULL)
|
if (fileName != NULL)
|
||||||
{
|
{
|
||||||
textFile = fopen(fileName,"rt");
|
FILE *textFile = fopen(fileName, "rt");
|
||||||
|
|
||||||
if (textFile != NULL)
|
if (textFile != NULL)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user