Fix new textures not working (crashing) with the new rendering engine.
Fix static configuration returning wrong values.