mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
Fix wrong GL texture being bound to image slot after being recreated
This commit is contained in:
parent
e9a43a21fa
commit
b02e3521bc
@ -2446,8 +2446,8 @@ update_shader_texture_bindings(ShaderContext *prev) {
|
|||||||
if (gtc != (TextureContext*)NULL) {
|
if (gtc != (TextureContext*)NULL) {
|
||||||
input._gtc = gtc;
|
input._gtc = gtc;
|
||||||
|
|
||||||
gl_tex = gtc->_index;
|
|
||||||
_glgsg->update_texture(gtc, true);
|
_glgsg->update_texture(gtc, true);
|
||||||
|
gl_tex = gtc->_index;
|
||||||
|
|
||||||
if (gtc->needs_barrier(GL_SHADER_IMAGE_ACCESS_BARRIER_BIT)) {
|
if (gtc->needs_barrier(GL_SHADER_IMAGE_ACCESS_BARRIER_BIT)) {
|
||||||
barriers |= GL_SHADER_IMAGE_ACCESS_BARRIER_BIT;
|
barriers |= GL_SHADER_IMAGE_ACCESS_BARRIER_BIT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user