summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
authorjussi2025-03-12 00:06:04 +0200
committerjussi2025-03-12 00:06:04 +0200
commitbfa73944f7e8a3a239ed105871a0912e8b22ed15 (patch)
treed09523447fce44c7b8250a2945a52bed093d2017 /src/core.c
parentd0ae531dbd78ed1df3689c84aec1e83828e8dc11 (diff)
downloadreilua-enhanced-bfa73944f7e8a3a239ed105871a0912e8b22ed15.tar.gz
reilua-enhanced-bfa73944f7e8a3a239ed105871a0912e8b22ed15.tar.bz2
reilua-enhanced-bfa73944f7e8a3a239ed105871a0912e8b22ed15.zip
Added rlDisableShader for SetShaderValue* functions.
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 543dda8..a688f0a 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1131,6 +1131,7 @@ int lcoreSetShaderValueMatrix( lua_State* L ) {
Matrix mat = uluaGetMatrix( L, 3 );
SetShaderValueMatrix( *shader, locIndex, mat );
+ rlDisableShader(); /* Remove this if added in raylib. Can cause bugs if not disabled. */
return 0;
}
@@ -1146,6 +1147,7 @@ int lcoreSetShaderValueTexture( lua_State* L ) {
Texture* texture = uluaGetTexture( L, 3 );
SetShaderValueTexture( *shader, locIndex, *texture );
+ rlDisableShader(); /* Remove this if added in raylib. Can cause bugs if not disabled. */
return 0;
}
@@ -1188,6 +1190,7 @@ int lcoreSetShaderValue( lua_State* L ) {
else {
SetShaderValue( *shader, locIndex, ints, uniformType );
}
+ rlDisableShader(); /* Remove this if added in raylib. Can cause bugs if not disabled. */
return 0;
}