Crash upon using TexGenAttrib with autoshader
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Panda3D |
Fix Released
|
Medium
|
rdb |
Bug Description
Panda 1.6.2 from website, Windows 2003 (32), Python 2.5.2.
Use this code to test:
-------
from pandac.PandaModules import *
import direct.
render.
smiley = loader.loadModel ('models/
smiley.reparentTo (render)
tex = loader.loadTexture ('maps/
ts = TextureStage ('ts')
smiley.setTexture (ts, tex)
smiley.
run()
-------
The problem is that in ShaderGenerator
for (int i=0; i<_num_textures; i++) {
if (!tex_gen-
texcoord_
texcoord_
text << "\t in float4 vtx_texcoord" << i << " : " << texcoord_vreg[i] << ",\n"; // <-- Oops, crashes because second stage has TexGen, first does not, so #2 referenced in a singular-entry list.
text << "\t out float4 l_texcoord" << i << " : " << texcoord_freg[i] << ",\n";
}
}
Original forum topic: http://
Changed in panda3d: | |
assignee: | nobody → pro-rsoft (niertie1) |
importance: | Undecided → Medium |
milestone: | none → 1.7.0 |
status: | New → Fix Committed |
Changed in panda3d: | |
status: | Fix Committed → Fix Released |