DRW: fix 'bind_texture' being called in place of 'bind_image'

Error pointed out by tests.
This commit is contained in:
Germano Cavalcante 2022-09-07 08:42:53 -03:00
parent 967664d1ee
commit da0c3cdbc9
1 changed files with 1 additions and 1 deletions

View File

@ -806,7 +806,7 @@ inline void PassBase<T>::bind_texture(const char *name,
template<class T> inline void PassBase<T>::bind_image(const char *name, GPUTexture *image)
{
this->bind_texture(GPU_shader_get_texture_binding(shader_, name), image);
this->bind_image(GPU_shader_get_texture_binding(shader_, name), image);
}
template<class T> inline void PassBase<T>::bind_ssbo(int slot, GPUStorageBuf *buffer)