-void Texture3D::storage(PixelFormat f, sizei w, sizei h, sizei d, int b)
+void Texture3D::storage(PixelFormat f, unsigned w, unsigned h, unsigned d, int b)
{
if(width>0)
throw InvalidState("Textures may only be created once");
if(w==0 || h==0 || d==0)
throw InvalidParameterValue("Invalid texture dimensions");
{
if(width>0)
throw InvalidState("Textures may only be created once");
if(w==0 || h==0 || d==0)
throw InvalidParameterValue("Invalid texture dimensions");
image(0, ifmt, UNSIGNED_BYTE, 0);
}
image(0, ifmt, UNSIGNED_BYTE, 0);
}
if(width==0)
storage(fmt, w, h, d, 0);
else if(w!=width || h!=height || d!=depth)
if(width==0)
storage(fmt, w, h, d, 0);
else if(w!=width || h!=height || d!=depth)