use texture coordinates; fix gcc warnings