MCPcopy Create free account
hub / github.com/DentonW/DevIL / ILAPIENTRY ilPopAttrib

Function ILAPIENTRY ilPopAttrib

DevIL/src-IL/src/il_states.cpp:869–881  ·  view source on GitHub ↗

Pops the last entry off the state stack into the current states

Source from the content-addressed store, hash-verified

867
868//! Pops the last entry off the state stack into the current states
869void ILAPIENTRY ilPopAttrib()
870{
871 if (ilCurrentPos <= 0) {
872 ilCurrentPos = 0;
873 ilSetError(IL_STACK_UNDERFLOW);
874 return;
875 }
876
877 // Should we check here to see if ilCurrentPos is too large?
878 ilCurrentPos--;
879
880 return;
881}
882
883
884//! Specifies implementation-dependent performance hints

Callers

nothing calls this directly

Calls 1

ilSetErrorFunction · 0.85

Tested by

no test coverage detected