Fix invalid bit shift when GPU shader attribute is not found
This commit is contained in:
@@ -257,7 +257,9 @@ GPUShaderInterface *GPU_shaderinterface_create(int32_t program)
|
|||||||
|
|
||||||
input->location = glGetAttribLocation(program, name);
|
input->location = glGetAttribLocation(program, name);
|
||||||
|
|
||||||
|
if (input->location != -1) {
|
||||||
shaderface->enabled_attr_mask |= (1 << input->location);
|
shaderface->enabled_attr_mask |= (1 << input->location);
|
||||||
|
}
|
||||||
|
|
||||||
set_input_name(shaderface, input, name, name_len);
|
set_input_name(shaderface, input, name, name_len);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user