hi
i have a sampler in my shader called mytex
uniform sampler3D mytex;
iLocation is the location of mytex .
glUniform1i(iLocation,0);
so a texture whose texture id is 0 is sampled using mytex in the shader.
my problem is that the code is fairly large and spread out in multiple files and i am having trouble locating which loaded texture is set to texture id 0. is there a way i can find this (in a reverse lookup sort of way at the point where i bind glUniform1i(iLocation,0))?
THANKS