Skip to content

Commit cf38927

Browse files
committed
Backport b02e352 to 1.9:
rdb: Fix wrong GL texture being bound to image slot after being recreated
1 parent 8c1f64e commit cf38927

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

panda/src/glstuff/glShaderContext_src.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,8 +1684,8 @@ update_shader_texture_bindings(ShaderContext *prev) {
16841684
if (gtc != (TextureContext*)NULL) {
16851685
_glsl_img_textures[i] = gtc;
16861686

1687-
gl_tex = gtc->_index;
16881687
_glgsg->update_texture(gtc, true);
1688+
gl_tex = gtc->_index;
16891689

16901690
if (gtc->needs_barrier(GL_SHADER_IMAGE_ACCESS_BARRIER_BIT)) {
16911691
barriers |= GL_SHADER_IMAGE_ACCESS_BARRIER_BIT;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy