MCPcopy Create free account
hub / github.com/assaultcube/AC / disablepolygonoffset

Function disablepolygonoffset

source/src/rendergl.cpp:177–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void disablepolygonoffset(GLenum type, bool restore)
178{
179 if(!depthoffset)
180 {
181 glDisable(type);
182 return;
183 }
184
185 if(restore)
186 {
187 glMatrixMode(GL_PROJECTION);
188 glLoadMatrixf(reflecting ? clipmatrix.v : projmatrix.v);
189 glMatrixMode(GL_MODELVIEW);
190 }
191}
192
193#define VARRAY_INTERNAL
194#include "varray.h"

Callers 3

gl_drawframeFunction · 0.85
renderMethod · 0.85
endrenderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected