summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--examples/web/shaders/shaders_hot_reloading.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/web/shaders/shaders_hot_reloading.c b/examples/web/shaders/shaders_hot_reloading.c
index f0ed6f4..f044bae 100644
--- a/examples/web/shaders/shaders_hot_reloading.c
+++ b/examples/web/shaders/shaders_hot_reloading.c
@@ -13,6 +13,7 @@
********************************************************************************************/
#include "raylib.h"
+#include "rlgl.h"
#include <time.h> // Required for: localtime(), asctime()
@@ -129,7 +130,7 @@ void UpdateDrawFrame(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;