Update texture with the data

Change-Id: I40e04210598bfa6ec68fb192aeefd85f0987a2b6
Fixed data not showing up

Change-Id: Ia84240cbffe25cb1464fd17bacf7028deac6c938
Use last texture units for 3D textures

Change-Id: I987ffe32770b5973abc24dfb5302d8ef55f11686
Added ability to set depth mode formats

Change-Id: I1170de345739c547d24c1c2a56ca5615009fc56e
Added ability to use texture modes

Change-Id: I2a64322213015505e9e66450f9adcbd8fded2888
Set texture parameters before creating the texture

Change-Id: Ia593faaa8aa5c5d6ecf0ca2126d8e5a8f901590a
Send texture parameters before creating the texture

Change-Id: Ib5360a9c8cbbebdc79b4394d5f5b8e46a83e227a
ENH: Free the texture object memory at destruction time

Change-Id: I8c038262037e7082696b9cbcd2350be706851879
ENH: Release graphics resources before deleting texture objects

Change-Id: If5222e8c5f62ab989278221e1658876a81cf2023
Safety checks before deleting objects

Change-Id: Ia3587e5e2bab630cf2c7a04bd806d0144ed9d4f3