summaryrefslogtreecommitdiffhomepage
path: root/examples/shaders
diff options
context:
space:
mode:
authorRay <[email protected]>2021-03-21 01:29:31 +0100
committerRay <[email protected]>2021-03-21 01:29:31 +0100
commited4ca6a7f386ef6bb86a6016d9e15ecb12ed287f (patch)
treeaf5eb0671396e1d2ba9a2ba6242fc0eb65f565af /examples/shaders
parentf4f6f665f74589a8d41d0a98df336b15c09438d1 (diff)
downloadraylib-ed4ca6a7f386ef6bb86a6016d9e15ecb12ed287f.tar.gz
raylib-ed4ca6a7f386ef6bb86a6016d9e15ecb12ed287f.zip
WARNING: BREAKING: rlgl module redesign -WIP-
- Some rlgl functions have been moved to core - Some functions have been made internal to rlgl - rlgl functions prefixed with rl*()
Diffstat (limited to 'examples/shaders')
-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;