Registriert: Di Jul 01, 2003 18:59 Beiträge: 887 Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
How do i undo settings i made with glTexEnvf like:
glTexEnvf(GL_TEXTURE_ENV,GL_OPERAND0_RGB,GL_SRC_COLOR);
is there an easy way to set it back to its defaults? Thanks in advance for your answers.
Registriert: Di Jul 01, 2003 18:59 Beiträge: 887 Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
That is the way. I should have know that command as i have used it before... . I did not notice a change in fps, so i suppose it is fast enough.... Thanks!
Registriert: Do Sep 25, 2003 15:56 Beiträge: 7804 Wohnort: Sachsen - ERZ / C
Programmiersprache: Java (, Pascal)
Do you think a Push...() without a Pop...() is a good idea!? When you do this you minimize your Attributestacksize step by step, don't you?
Read in the Wiki what happens when you Pop from an empty stack. It couses a GLError but this is not that the Problem. A Stackoverflow means you could store nothing more on your Stack. A Underflow yust means the last stackcomand is ignored.
But maybe you meant something else with that code...
_________________ Blog: kevin-fleischer.de und fbaingermany.com
Registriert: Di Jul 01, 2003 18:59 Beiträge: 887 Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
if it is ignored then it is OK. This way things stay clean (no stack overflows). Except i should use a glpopattrib before closing the apllication.
What happens when i do not clear the stack before closing the application, a memory leak?
Mitglieder in diesem Forum: 0 Mitglieder und 11 Gäste
Du darfst keine neuen Themen in diesem Forum erstellen. Du darfst keine Antworten zu Themen in diesem Forum erstellen. Du darfst deine Beiträge in diesem Forum nicht ändern. Du darfst deine Beiträge in diesem Forum nicht löschen. Du darfst keine Dateianhänge in diesem Forum erstellen.