summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRay <[email protected]>2020-10-31 11:49:19 +0100
committerRay <[email protected]>2020-10-31 11:49:19 +0100
commit8327857488404b6a242eb771e55ee7b674c61f64 (patch)
treebf20fec9776657aa857eacfd309bf6efc0681dbc /examples
parentfbc51e822be6454ec5c1ff6b6c29c48bc843d123 (diff)
downloadraylib-8327857488404b6a242eb771e55ee7b674c61f64.tar.gz
raylib-8327857488404b6a242eb771e55ee7b674c61f64.zip
Update shaders_multi_sample2d.c
Diffstat (limited to 'examples')
-rw-r--r--examples/shaders/shaders_multi_sample2d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/shaders/shaders_multi_sample2d.c b/examples/shaders/shaders_multi_sample2d.c
index efb710aa..2e545981 100644
--- a/examples/shaders/shaders_multi_sample2d.c
+++ b/examples/shaders/shaders_multi_sample2d.c
@@ -44,7 +44,7 @@ int main(void)
Shader shader = LoadShader(0, TextFormat("resources/shaders/glsl%i/color_mix.fs", GLSL_VERSION));
// Get an additional sampler2D location to be enabled on drawing
- int texRedLoc = GetShaderLocation(shader, "texture1");
+ int texBlueLoc = GetShaderLocation(shader, "texture1");
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------
@@ -68,7 +68,7 @@ int main(void)
// WARNING: Additional samplers are enabled for all draw calls in the batch,
// EndShaderMode() forces batch drawing and consequently resets active textures
// to let other sampler2D to be activated on consequent drawings (if required)
- SetShaderValueTexture(shader, texRedLoc, texBlue);
+ SetShaderValueTexture(shader, texBlueLoc, texBlue);
// We are drawing texRed using default sampler2D texture0 but
// an additional texture units is enabled for texBlue (sampler2D texture1)