惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Schneier on Security
有赞技术团队
有赞技术团队
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
D
DataBreaches.Net
F
Full Disclosure
腾讯CDC
博客园 - 【当耐特】
MyScale Blog
MyScale Blog
Stack Overflow Blog
Stack Overflow Blog
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
大猫的无限游戏
大猫的无限游戏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
SegmentFault 最新的问题
The Register - Security
The Register - Security
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
J
Java Code Geeks
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Privacy International News Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
A
Arctic Wolf
Scott Helme
Scott Helme
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tor Project blog
博客园 - 三生石上(FineUI控件)
Know Your Adversary
Know Your Adversary
AWS News Blog
AWS News Blog
G
Google Developers Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
CERT Recently Published Vulnerability Notes
O
OpenAI News
Project Zero
Project Zero
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Application and Cybersecurity Blog
Application and Cybersecurity Blog
云风的 BLOG
云风的 BLOG
N
News and Events Feed by Topic
MongoDB | Blog
MongoDB | Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Microsoft Security Blog
Microsoft Security Blog
Cisco Talos Blog
Cisco Talos Blog
P
Palo Alto Networks Blog
Schneier on Security
Schneier on Security

博客园 - cloudseawang

选择 latex math \sum的写法 - cloudseawang - 博客园 qt 4.8.5 vs 2012编译 Graphical Cognition graphical perception When to Use Bar Charts Instead of Pie Charts There's no Qt version assigned to this project for platform Win32. Please use the 'change Qt version' feature and choose a valid Qt version for this 转Tutorial papers for MRF, CRF and DRF 转 QT无法定位程序输入点*于动态链接库 QtCore4.dll 难道一直是4 4 2 3的命? bibtex to bibitem 再次被rejected qt ogl添加keyevent 牛年最后一天的rejection cg 如何给结构体数组赋值 - cloudseawang - 博客园 cg fp40的问题 cg纹理绑定顺序的一个错误 qt +vs2005开发
cg又一个数据绑定错误
cloudseawang · 2009-07-25 · via 博客园 - cloudseawang

TextureManager::getGaussTF(gaussParam); 该函数通过引用方式读取gaussParam参数,然后绑定到cg的某一参数。

然而,如果该函数放在cgGLBindProgram(xxx)后执行,无法得到争取的gaussParam。

开始以为是引用问题,后改为传值,一样的错误。最后发现,必须把该函数放到cgglBIndProgram前执行。

--------------------------------------------

以上说说法是错误的,不是问题的根本!

关键是TextureManager::getGaussTF(gaussParam)的gaussParam涉及到地址分配。

如果gaussParam的地址由TextureMager分配的,调用时会自动失效。

必须在调用该函数之前分配!