fix compilation with gcc
get rid of texture state struct