(API Change) Use const params where applicable
This Fixes a minor flaw with the API where data had to always be mutable to be usable by the API. Functions that do not modify the fundamental underlying data of a structure should be marked as constant, both for safety and to signify that the parameter is input only and will not be modified by the function using it.
This commit is contained in:
@@ -59,7 +59,8 @@ static inline D3D11_FILTER ConvertGSFilter( gs_sample_filter filter)
|
||||
return D3D11_FILTER_MIN_MAG_MIP_POINT;
|
||||
}
|
||||
|
||||
gs_sampler_state::gs_sampler_state(gs_device_t *device, gs_sampler_info *info)
|
||||
gs_sampler_state::gs_sampler_state(gs_device_t *device,
|
||||
const gs_sampler_info *info)
|
||||
: device (device),
|
||||
info (*info)
|
||||
{
|
||||
|
Reference in New Issue
Block a user