Fix T83203 BGL: shader.program wrongly always returns 0

This was a leftover from the 2.91 GPU module refactor.

This is an exception that should be removed when we remove BGL.
This commit is contained in:
2020-11-30 14:52:46 +01:00
parent 6fba2726c7
commit f61ad0e101
4 changed files with 14 additions and 4 deletions

View File

@@ -591,11 +591,10 @@ int GPU_shader_get_attribute(GPUShader *shader, const char *name)
/** \name Getters
* \{ */
/* Clement : Temp */
int GPU_shader_get_program(GPUShader *UNUSED(shader))
/* DEPRECATED: Kept only because of BGL API */
int GPU_shader_get_program(GPUShader *shader)
{
/* TODO fixme */
return (int)0;
return unwrap(shader)->program_handle_get();
}
/** \} */