Skip to content

Commit 285cc6e

Browse files
committed
allow setting shader directly from presetman
1 parent 7bee365 commit 285cc6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/Renderer/raylib/rlgl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3906,7 +3906,7 @@ void rlClearActiveTextures() {
39063906
}
39073907

39083908
// Set shader currently active (id and locations)
3909-
void rlSetShader(unsigned int id, int* locs) {
3909+
void rlSetShader(unsigned int id, const int* locs) {
39103910
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
39113911
if (RLGL.State.currentShaderId != id) {
39123912
rlDrawRenderBatch(RLGL.currentBatch);

Source/Renderer/raylib/rlgl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ RLAPI void rlSetUniform(int locIndex, const void* value, int uniformType, int co
820820
RLAPI void rlSetUniformMatrix(int locIndex, RLMatrix mat); // Set shader value matrix
821821
RLAPI void rlSetUniformMatrices(int locIndex, const RLMatrix* mat, int count); // Set shader value matrices
822822
RLAPI void rlSetUniformSampler(int locIndex, unsigned int textureId); // Set shader value sampler
823-
RLAPI void rlSetShader(unsigned int id, int* locs); // Set shader currently active (id and locations)
823+
RLAPI void rlSetShader(unsigned int id, const int* locs); // Set shader currently active (id and locations)
824824
RLAPI unsigned int rlGetShaderCurrent();
825825
// Compute shader management
826826
RLAPI unsigned int rlLoadComputeShaderProgram(unsigned int shaderId); // Load compute shader program

0 commit comments

Comments
 (0)