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.
texture2D
has been deprecated as of OpenGL 3.3 in favor oftexture
. Although no graphics driver that I know of removes support fortexture2D
, 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.