Apparently i used GL_TEXTURE_COMPARE_MODE GL_COMPARE_R_TO_TEXTURE and GL_TEXTURE_COMPARE_FUNCset to GL_LEQUAL and that doesn't work on nvidia no matter what you try, it is not even needed if you use glsl - i'm not sure from what totorial i got that from..