codam-coding-college/MLX42

[BUG] when compiling gives GLSL error message

Closed this issue · 3 comments

Hi! When trying to run cub3d we get " 0:2(201): error: sampler arrays indexed with non-constant expressions are forbidden in GLSL 1.30 and later ", as an error message.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://github.com/DjoykeAbyah/42_CUB3D'
  2. clone repo
  3. make or make re
  4. run ./cub3d ./maps/basic.cub
  5. see error.

Expected behavior
It should not give an error

Desktop (please complete the following information):

  • Apple Inc. iMac18,3
  • Ubuntu 22.04.3 LTS

Additional context
We tried to reduce our code to the bare minimum to see where it goes wrong. just have a main with init.mlx in there and a infinite while loop. That still gave the same error.
Also on our Windows laptop and Mac laptop it worked just fine.

Duplicate of #136

Will fix it very soon.

Thanks!!

Fixed in ca0f163