Cleanup: replace UNUSED macro with commented args in C++ code
This is the conventional way of dealing with unused arguments in C++, since it works on all compilers. Regex find and replace: `UNUSED\((\w+)\)` -> `/*$1*/`
This commit is contained in:
@@ -482,7 +482,7 @@ void GPU_unpack_row_length_set(uint len)
|
||||
void GPU_texture_bind_ex(GPUTexture *tex_,
|
||||
eGPUSamplerState state,
|
||||
int unit,
|
||||
const bool UNUSED(set_number))
|
||||
const bool /*set_number*/)
|
||||
{
|
||||
Texture *tex = reinterpret_cast<Texture *>(tex_);
|
||||
state = (state >= GPU_SAMPLER_MAX) ? tex->sampler_state : state;
|
||||
|
||||
Reference in New Issue
Block a user