Fixed texture id generation (Fixes #334).
Fixed texture id generation (Fixes #334).

svn path=/trunk/libavg/; revision=7549

libavg/libavg,hoodie/libavg,yyd01245/libavg,libavg/libavg,th3infinity/libavg,yyd01245/libavg,scotty007/libavg,th3infinity/libavg,th3infinity/libavg,scotty007/libavg,hoodie/libavg,yyd01245/libavg,th3infinity/libavg,scotty007/libavg,hoodie/libavg,scotty007/libavg,libavg/libavg,yyd01245/libavg,hoodie/libavg,libavg/libavg