diff --git a/src/raygui.h b/src/raygui.h index a5b9e33..d6223de 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -3937,6 +3937,7 @@ void GuiLoadStyle(const char *fileName) #define MAX_LINE_BUFFER_SIZE 256 bool tryBinary = false; + if (!guiStyleLoaded) GuiLoadStyleDefault(); // Try reading the files as text file first FILE *rgsFile = fopen(fileName, "rt");