mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
Backport b02e352 to 1.9:
rdb: Fix wrong GL texture being bound to image slot after being recreated
This commit is contained in:
parent
8c1f64e086
commit
cf389276da
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user