Backport b02e352 to 1.9:

rdb: Fix wrong GL texture being bound to image slot after being recreated
This commit is contained in:
rdb 2016-11-27 13:04:54 +01:00
parent 8c1f64e086
commit cf389276da

View File

@ -1684,8 +1684,8 @@ update_shader_texture_bindings(ShaderContext *prev) {
if (gtc != (TextureContext*)NULL) {
_glsl_img_textures[i] = gtc;
gl_tex = gtc->_index;
_glgsg->update_texture(gtc, true);
gl_tex = gtc->_index;
if (gtc->needs_barrier(GL_SHADER_IMAGE_ACCESS_BARRIER_BIT)) {
barriers |= GL_SHADER_IMAGE_ACCESS_BARRIER_BIT;