summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/shaders/shaders_hot_reloading.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/shaders/shaders_hot_reloading.c b/examples/shaders/shaders_hot_reloading.c
index ef101b4d..5b4ba0a0 100644
--- a/examples/shaders/shaders_hot_reloading.c
+++ b/examples/shaders/shaders_hot_reloading.c
@@ -13,6 +13,7 @@
********************************************************************************************/
#include "raylib.h"
+#include "rlgl.h"
#include <time.h> // Required for: localtime(), asctime()
@@ -76,7 +77,7 @@ int main(void)
// Try reloading updated shader
Shader updatedShader = LoadShader(0, TextFormat(fragShaderFileName, GLSL_VERSION));
- if (updatedShader.id != GetShaderDefault().id) // It was correctly loaded
+ if (updatedShader.id != rlGetShaderDefault().id) // It was correctly loaded
{
UnloadShader(shader);
shader = updatedShader;