简体   繁体   中英

glEnable(GL_TEXTURE_GEN_S) GL_INVALID_OPERATION

I'm currently working on a shadow Mapping thing. I found Paul's Projects http://www.paulsprojects.net/tutorials/smt/smt.html , and I'm currently trying to implement this. But I'm not able to get a proper solution.

Does anyone of you guys have any idea why putting a glPushMatrix(), glPopMatrix() pair for each glmodelview- and glprojection-matrix around the whole drawing process (all 3 necessary shadow-pathes) would cause any GL_INVALID_OPERATION problem when calling glEnable(GL_TEXTURE_GEN_S)?

The error analysis for glEnable(GL_TEXTURE_GEN_S) sais that in the current state glEnable(GL_TEXTURE_GEN_S) can not be executed. Any ideas?

Please show us some code. My best guess is that you called gl{Push,Pop}Matrix and or glEnable within a glBegin…glEnd block, where those are not allowed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM