vram-guild / canvas

Shader-Based Minecraft Renderer for Fabric
GNU Lesser General Public License v3.0
416 stars 40 forks source link

Replace deprecated texture2D() with texture() #440

Closed supsm closed 6 months ago

supsm commented 6 months ago

texture2D has been deprecated as of OpenGL 3.3 in favor of texture. Although no graphics driver that I know of removes support for texture2D, I think it is still best to avoid deprecated functions.

This very simple change can also be backported easily, but I can't be bothered.