[Bug 30924] New: incorrect checking of return value of driAllocateTexture