Please do not reply to this email: if you want to comment on the bug, go to the URL shown below and enter yourcomments there. https://bugs.freedesktop.org/show_bug.cgi?id=7586 Summary: Error while linking Shader object Product: Mesa Version: 6.5 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Mesa core AssignedTo: mesa3d-dev@lists.sourceforge.net ReportedBy: [EMAIL PROTECTED]
I have a simple Fragment shader ( works with ati / nvidia drivers ), thats breaking mesa. In the file mesa-6.5\src\mesa\shader\shaderobjects_3dlabs.c on line 810 it says obj = impl->_obj._container.attached[i]; // Refcounts: obj == 1, unk == 0, sha == 0 unk = (**obj)._unknown.QueryInterface ((struct gl2_unknown_intf **) obj, UIID_SHADER); // Refcounts: obj == 2, unk == obj, sha == 0 (**obj)._unknown.Release ((struct gl2_unknown_intf **) obj); // Refcounts: obj == 1, unk == obj, sha == 0 if (unk == NULL) return; sha = (struct gl2_shader_impl *) unk; // Refcounts: obj == 1, unk == obj, sha == unk units[i] = &sha->_obj.unit; (**unk).Release (unk); // Refcounts: obj == 0, unk == null, sha == null AND units[i] == 0 !!!!! I added The reference counts as comments as they are on my machine. The problem as you might have already seen is that units[i] is invalid after the last Release and therefor I get access violations some functions later. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev