diff options
| author | Ray <[email protected]> | 2021-03-21 01:30:03 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-03-21 01:30:03 +0100 |
| commit | 8d0bf00f452c8d02aef3bff0951d37855c8eb34b (patch) | |
| tree | d7bfdba99ef0fdde6c5671005188073842dd9164 /examples | |
| parent | 129dea94ed65b52c380c40ca68f0271abb07eb48 (diff) | |
| download | raylib.com-8d0bf00f452c8d02aef3bff0951d37855c8eb34b.tar.gz raylib.com-8d0bf00f452c8d02aef3bff0951d37855c8eb34b.zip | |
Update shaders_hot_reloading.c
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/web/shaders/shaders_hot_reloading.c | 3 |
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; |
