Skip to content

Commit b02e352

Browse files
committed
Fix wrong GL texture being bound to image slot after being recreated
1 parent e9a43a2 commit b02e352

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
@@ -2446,8 +2446,8 @@ update_shader_texture_bindings(ShaderContext *prev) {
24462446
if (gtc != (TextureContext*)NULL) {
24472447
input._gtc = gtc;
24482448

2449-
gl_tex = gtc->_index;
24502449
_glgsg->update_texture(gtc, true);
2450+
gl_tex = gtc->_index;
24512451

24522452
if (gtc->needs_barrier(GL_SHADER_IMAGE_ACCESS_BARRIER_BIT)) {
24532453
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