Cleanup: Unused warning in release builds
This commit is contained in:
@@ -384,9 +384,9 @@ void Result::steal_data(Result &source)
|
||||
|
||||
/* Returns true if the given GPU texture is compatible with the type and precision of the given
|
||||
* result. */
|
||||
static bool is_compatible_texture(const GPUTexture *texture, const Result &result)
|
||||
[[maybe_unused]] static bool is_compatible_texture(const GPUTexture *texture, const Result &result)
|
||||
{
|
||||
/* Float3 types are an except, see the documentation on the get_gpu_texture_format method for
|
||||
/* Float3 types are an exception, see the documentation on the get_gpu_texture_format method for
|
||||
* more information. */
|
||||
if (result.type() == ResultType::Float3) {
|
||||
if (GPU_texture_format(texture) == Result::gpu_texture_format(GPU_RGB32F, result.precision()))
|
||||
|
||||
Reference in New Issue
Block a user