mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
depth offset should affect points and lines too
This commit is contained in:
parent
962f43800d
commit
b3a30d821f
@ -498,12 +498,16 @@ enable_polygon_offset(bool val) {
|
||||
<< "glEnable(GL_POLYGON_OFFSET_*)" << endl;
|
||||
#endif
|
||||
GLP(Enable)(GL_POLYGON_OFFSET_FILL);
|
||||
GLP(Enable)(GL_POLYGON_OFFSET_LINE);
|
||||
GLP(Enable)(GL_POLYGON_OFFSET_POINT);
|
||||
} else {
|
||||
#ifdef GSG_VERBOSE
|
||||
GLCAT.spam()
|
||||
<< "glDisable(GL_POLYGON_OFFSET_*)" << endl;
|
||||
#endif
|
||||
GLP(Disable)(GL_POLYGON_OFFSET_FILL);
|
||||
GLP(Disable)(GL_POLYGON_OFFSET_LINE);
|
||||
GLP(Disable)(GL_POLYGON_OFFSET_POINT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user