Changed OpenGL Texture setting method