EngoEngine / engo

Engo is an open-source 2D game engine written in Go.
https://engoengine.github.io
MIT License
1.74k stars 136 forks source link

Fix issue with comparing shaders. #619

Closed jonbonazza closed 5 years ago

jonbonazza commented 5 years ago

In renderEntityList.Less, the shader comparison was incorrect. Instead of using the valuie of the render component's shader (a pointer) it was instead comparing the address of the pointer variable of the render component's shader (address of the pointer). This was resulting in the comparison always being false, even if it was the same shader.

Noofbiz commented 5 years ago

Thanks! Great job!