13 Dec
2013
13 Dec
'13
2:52 p.m.
Am 13.12.2013 um 15:06 schrieb Henri Verbeet:
I think we'd want the callers to always specify everything, but only do the more expensive things like e.g. resource_unload() when required. I don't think so. At least a NULL memory pointer should be allowed for device_reset. d3d9 will need to be able to specify a pitch of 0, otherwise we'll have to deal with block-based surfaces with custom pitches and calculate a compressed surface pitch in d3d9.
I guess we can require a width and height != zero, that'll limit the complexity of the error checking.