this->device = (gfxdevice_t*)rfx_calloc(sizeof(gfxdevice_t));
dbg("this->device now %p (old: %p)", this->device, states[statepos].olddevice);
this->device = (gfxdevice_t*)rfx_calloc(sizeof(gfxdevice_t));
dbg("this->device now %p (old: %p)", this->device, states[statepos].olddevice);