GPUShader: Fix apple clang warnings

This commit is contained in:
Clément Foucault 2020-08-19 11:57:28 +02:00
parent d412a5e6fa
commit e9e493977c
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ void Shader::print_errors(Span<const char *> sources, char *log)
error_char = (int)strtol(error_line_number_end + 1, NULL, 10);
}
}
if ((error_line == -1)) {
if (error_line == -1) {
found_line_id = false;
}
const char *src_line = sources_combined;

View File

@ -57,7 +57,7 @@ class GLShader : public Shader {
bool finalize(void) override;
void transform_feedback_names_set(Span<const char *> name_list,
const eGPUShaderTFBType geom_type);
const eGPUShaderTFBType geom_type) override;
bool transform_feedback_enable(GPUVertBuf *buf) override;
void transform_feedback_disable(void) override;