[Bug 30924] incorrect checking of return value of driAllocateTexture