ソースを参照

[rlgl] LoadText() variable scope improvement

pull/1113/head
Ray 5年前
コミット
113a580021
1個のファイルの変更1行の追加2行の削除
  1. +1
    -2
      src/rlgl.h

+ 1
- 2
src/rlgl.h ファイルの表示

@ -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)
{ {

読み込み中…
キャンセル
保存