fix assigning textures
fix uniform comparison
fix render state and uniform current and potential padding issues